Merge lp:~vauxoo/addons-vauxoo/7.0-purchase_test_data_imp_price_unit_dev_jorge into lp:addons-vauxoo/7.0

Status: Merged
Merged at revision: 872
Proposed branch: lp:~vauxoo/addons-vauxoo/7.0-purchase_test_data_imp_price_unit_dev_jorge
Merge into: lp:addons-vauxoo/7.0
Diff against target: 18 lines (+3/-3)
1 file modified
purchase_test_data_imp/test/purchase_order_product_can_be_purchased.yml (+3/-3)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/7.0-purchase_test_data_imp_price_unit_dev_jorge
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Approve
Isaac López Zúñiga Pending
Jorge Angel Naranjo Rogel - http://www.vauxoo.com Pending
Review via email: mp+191450@code.launchpad.net

Description of the change

Se agrega el precio del producto ya que en el test lo toma como 0 y le asigne 1.

To post a comment you must log in.
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'purchase_test_data_imp/test/purchase_order_product_can_be_purchased.yml'
--- purchase_test_data_imp/test/purchase_order_product_can_be_purchased.yml 2013-10-15 23:16:47 +0000
+++ purchase_test_data_imp/test/purchase_order_product_can_be_purchased.yml 2013-10-16 16:04:25 +0000
@@ -61,11 +61,11 @@
61 'location_id': ref('stock_location_stock_purchase_test_data')})61 'location_id': ref('stock_location_stock_purchase_test_data')})
62 62
63 #~ Data of purchase order line63 #~ Data of purchase order line
64 purchase_order_line_data = purchase_order_line_obj.onchange_product_id(cr, uid, [], purchase_order_data.get('pricelist_id'), product_id, qty=1, uom_id=1,64 purchase_order_line_data = purchase_order_line_obj.onchange_product_id(cr, uid, [], purchase_order_data.get('pricelist_id'), product_id, qty=1.0, uom_id=1,
65 partner_id=partner_id, date_order=False, 65 partner_id=partner_id, date_order=False,
66 fiscal_position_id=False, date_planned=False,66 fiscal_position_id=False, date_planned=False,
67 name=False, price_unit=1, context=context)['value']67 name=False, price_unit=0, context=context)['value']
6868 purchase_order_line_data.update({'price_unit':1.0})
69 #~ Added taxes of product69 #~ Added taxes of product
70 taxes_ids = product_data[0].supplier_taxes_id70 taxes_ids = product_data[0].supplier_taxes_id
71 purchase_order_line_data.update({'product_id': product_id, 'taxes_id': [(4, tax.id) for tax in taxes_ids]})71 purchase_order_line_data.update({'product_id': product_id, 'taxes_id': [(4, tax.id) for tax in taxes_ids]})