[IMP]sale: Improve statements and sequence in __openerp__.py file

bzr revid: dbr@tinyerp.com-20111116104341-2zkm4rs49rnotkbr
This commit is contained in:
DBR (OpenERP)
2011-11-16 16:13:41 +05:30
parent 397a29185e
commit 6d201c2d5b
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -88,9 +88,9 @@ Dashboard for Sales Manager that includes:
'test': [
'test/ui/execute_config.yml',
'test/process/order_policy.yml',
'test/process/get_picking_details.yml',
'test/process/cancel_order.yml',
'test/process/run_scheduler.yml',
'test/process/cancel_order.yml',
'test/process/get_picking_details.yml',
#'test/ui/onchange_events.yml',
'test/ui/sale_make_invoice.yml',
'test/ui/make_advance_invoice.yml',
+4 -4
View File
@@ -1,7 +1,7 @@
-
In order to test the cancel sale order.
-
I try to cancel Manual sale order.
I try to cancel sale order and It's order policy is Manual.
-
!python {model: sale.order}: |
try:
@@ -9,7 +9,7 @@
except Exception,e:
pass
-
I cancel the invoice of Manual order.
For cancel the sale order I have to cancel the invoice of sale order.
-
!python {model: sale.order}: |
import netsvc
@@ -25,7 +25,7 @@
assert order.invoice_ids[0].state == "cancel","order's related invoice should be cancelled"
assert order.state == "invoice_except", "order should be in Invoice Exception state after cancel Invoice"
-
I cancel the picking of Manual sale order.
Now need to cancel the rekated picking of sale order.
-
!python {model: sale.order}: |
import netsvc
@@ -42,7 +42,7 @@
assert order.picking_ids[0].state == "cancel","order's related invoice should be cancelled"
assert order.state == "shipping_except", "order should be in Invoice Exception state after cancel Invoice"
-
Now I am able to cancel sale order.
Now I am able to cancel this sale order.
-
!python {model: sale.order}: |
self.action_cancel(cr, uid, [ref("order4")])