[FIX] product : Improved the test cases.

bzr revid: mdi@tinyerp.com-20120919131305-gyn847qpagdujq0h
This commit is contained in:
Divyesh Makwana (Open ERP) 2012-09-19 18:43:05 +05:30
parent c31eb654b2
commit 2218b02926
2 changed files with 3 additions and 3 deletions

View File

@ -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
-

View File

@ -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.