[FIX] product : Improved the test cases.
bzr revid: mdi@tinyerp.com-20120919131305-gyn847qpagdujq0h
This commit is contained in:
parent
c31eb654b2
commit
2218b02926
|
@ -47,7 +47,7 @@
|
|||
- name: 20% Discount given by my supplier
|
||||
sequence: 1
|
||||
price_min_margin: 2
|
||||
price_max_margin: -5
|
||||
price_max_margin: 5
|
||||
product_id: product_product_6
|
||||
base: -2
|
||||
-
|
||||
|
|
|
@ -49,14 +49,14 @@
|
|||
!python {model: product.product}: |
|
||||
context.update({'quantity':1, 'date': False, 'partner': ref('base.res_partner_4'), 'pricelist': ref("supplier_pricelist")})
|
||||
product = self.browse(cr, uid, ref("product_product_6"), context=context)
|
||||
assert product.price == 785, "cost price is not correspond."
|
||||
assert product.price == 792, "cost price is not correspond."
|
||||
-
|
||||
I check cost price of LCD Monitor if more than 3 Unit.
|
||||
-
|
||||
!python {model: product.product}: |
|
||||
context.update({'quantity':3})
|
||||
product = self.browse(cr, uid, ref("product_product_6"), context=context)
|
||||
assert product.price == 780, "cost price is not correspond."
|
||||
assert product.price == 787, "cost price is not correspond."
|
||||
|
||||
-
|
||||
I print the sale prices report.
|
||||
|
|
Loading…
Reference in New Issue