[IMP] sale: added a test to verify the the product onchange in sale order line was correctly triggered
bzr revid: qdp-launchpad@openerp.com-20120928095458-vjwd4xt0nun8lfjx
This commit is contained in:
parent
a6ef1d4a42
commit
20bf037ea4
|
@ -7,8 +7,12 @@
|
|||
payment_term: account.account_payment_term
|
||||
-
|
||||
!record {model: sale.order.line, id: line}:
|
||||
name : 'LCD Monitor'
|
||||
order_id: sale_order_test1
|
||||
product_id: product.product_product_7
|
||||
price_unit: 190.50
|
||||
product_uom_qty: 8
|
||||
-
|
||||
I verify that the onchange was correctly triggered
|
||||
-
|
||||
!assert {model: sale.order.line, id: sale.line, string: The onchange function of product was not correctly triggered}:
|
||||
- l.name == '17” LCD Monitor'
|
||||
- l.price_unit == 1350.0
|
||||
|
|
Loading…
Reference in New Issue