diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 708a35d4351..687221f371b 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -442,9 +442,9 @@ class purchase_order(osv.osv): 'name': self.pool.get('ir.sequence').get(cr, uid, 'stock.picking.in'), 'origin': order.name + ((order.origin and (':' + order.origin)) or ''), 'date': order.date_order, + 'type': 'in', 'partner_id': order.dest_address_id.id or order.partner_id.id, 'invoice_state': '2binvoiced' if order.invoice_method == 'picking' else 'none', - 'type': 'in', 'purchase_id': order.id, 'company_id': order.company_id.id, 'move_lines' : [], diff --git a/addons/purchase/stock_view.xml b/addons/purchase/stock_view.xml index 11a3b1575f5..f29783c67ae 100644 --- a/addons/purchase/stock_view.xml +++ b/addons/purchase/stock_view.xml @@ -19,7 +19,7 @@ - + @@ -30,7 +30,7 @@ name="Receptions" res_model="stock.picking" src_model="purchase.order" - context="{'default_purchase_id': active_id, 'contact_display': 'partner', 'default_type': 'in'}" /> + context="{'default_purchase_id': active_id, 'contact_display': 'partner'}" /> @@ -51,9 +51,9 @@ form - + - + @@ -67,8 +67,8 @@ - + @@ -89,7 +89,7 @@ - If you set the Invoicing Control on a purchase order as "Based on receptions", you can track here all the product receptions and create invoices for those receptions. - - - tree - - - - - - form - - - - diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index 9e2f9280f47..847e2e8f463 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -246,21 +246,8 @@ - - - - - - - - - - - - -