[IMP] sale: Improved yaml for procurement.

bzr revid: uco@tinyerp.com-20100609121859-oz61e713gcdqtw2z
This commit is contained in:
uco (OpenERP)
2010-06-09 17:48:59 +05:30
parent cc1d0ded2c
commit d30a81d6fb
+4 -4
View File
@@ -68,21 +68,21 @@
-
I check that one procurement is generated.
-
!python {model: mrp.procurement}: |
!python {model: procurement.order}: |
from tools.translate import _
proc_ids = self.search(cr, uid, [('state','=','confirmed')])
assert proc_ids, _('No Procurements!')
-
The scheduler runs.
-
!function {model: mrp.procurement, name: run_scheduler}:
- model: mrp.procurement
!function {model: procurement.order, name: run_scheduler}:
- model: procurement.order
search: "[('state','=','confirmed')]"
-
I check that the procurement for the product table is in exception state.
As my product's supply method is produce and mrp module is yet not installed.
-
!python {model: mrp.procurement}: |
!python {model: procurement.order}: |
from tools.translate import _
proc_ids = self.search(cr, uid, [('state','=','exception')])
assert proc_ids, _('No Procurements are in exception state!')