[IMP] Correct yml invoice directly + multi warehouse no update with wizard
bzr revid: jco@openerp.com-20130913140151-ycz9qolc8fqgaimt
This commit is contained in:
parent
c401c9027c
commit
3150373c2d
|
@ -6,7 +6,6 @@
|
|||
-
|
||||
!record {model: stock.picking, id: stock_picking_out0}:
|
||||
partner_id: base.res_partner_address_22
|
||||
invoice_state: 2binvoiced
|
||||
move_lines:
|
||||
- company_id: base.main_company
|
||||
location_id: stock.stock_location_stock
|
||||
|
@ -14,15 +13,15 @@
|
|||
product_uom_qty: 3.0
|
||||
product_uom: product.product_uom_unit
|
||||
location_dest_id: stock.stock_location_customers
|
||||
invoice_state: 2binvoiced
|
||||
move_type: direct
|
||||
picking_type_id: stock.picking_type_out
|
||||
-
|
||||
I need to check the availability of the product so I make my picking order for processing later.
|
||||
-
|
||||
!python {model: stock.picking}: |
|
||||
self.draft_force_assign(cr, uid, [ref("stock_picking_out0")], {"lang": "en_US", "search_default_available":
|
||||
self.action_confirm(cr, uid, [ref("stock_picking_out0")], {"lang": "en_US", "search_default_available":
|
||||
1, "tz": False, "active_model": "ir.ui.menu", "contact_display": "partner",
|
||||
"active_ids": [ref("stock.menu_action_picking_tree")], "active_id": ref("stock.menu_action_picking_tree"),
|
||||
})
|
||||
-
|
||||
I check the product availability. Product is available in the stock and ready to be sent.
|
||||
|
@ -30,14 +29,12 @@
|
|||
!python {model: stock.picking}: |
|
||||
self.action_assign(cr, uid, [ref("stock_picking_out0")], {"lang": "en_US", "search_default_available":
|
||||
1, "tz": False, "active_model": "ir.ui.menu", "contact_display": "partner",
|
||||
"active_ids": [ref("stock.menu_action_picking_tree")], "active_id": ref("stock.menu_action_picking_tree"),
|
||||
})
|
||||
-
|
||||
I process the delivery
|
||||
-
|
||||
!python {model: stock.partial.picking}: |
|
||||
partial_id = self.create(cr, uid, {}, context={'active_model':'stock.picking',
|
||||
'active_ids':[ref('stock_picking_out0')]})
|
||||
!python {model: stock.picking}: |
|
||||
partial_id = ref("stock_picking_out0")
|
||||
self.do_partial(cr, uid, [partial_id])
|
||||
|
||||
-
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
-
|
||||
!context
|
||||
noupdate: 0
|
||||
-
|
||||
Create Two Customers
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue