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
1=== modified file 'purchase_test_data_imp/test/purchase_order_product_can_be_purchased.yml'
2--- purchase_test_data_imp/test/purchase_order_product_can_be_purchased.yml 2013-10-15 23:16:47 +0000
3+++ purchase_test_data_imp/test/purchase_order_product_can_be_purchased.yml 2013-10-16 16:04:25 +0000
4@@ -61,11 +61,11 @@
5 'location_id': ref('stock_location_stock_purchase_test_data')})
6
7 #~ Data of purchase order line
8- 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,
9+ 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,
10 partner_id=partner_id, date_order=False,
11 fiscal_position_id=False, date_planned=False,
12- name=False, price_unit=1, context=context)['value']
13-
14+ name=False, price_unit=0, context=context)['value']
15+ purchase_order_line_data.update({'price_unit':1.0})
16 #~ Added taxes of product
17 taxes_ids = product_data[0].supplier_taxes_id
18 purchase_order_line_data.update({'product_id': product_id, 'taxes_id': [(4, tax.id) for tax in taxes_ids]})