[FIX] sale: fixing a warning that may appears in sale_service as 'invoice_state' field on procurement.order is only defined in stock_account, while it was already giving a value in sale module
This commit is contained in:
@@ -660,7 +660,6 @@ class sale_order(osv.osv):
|
||||
'product_uos': (line.product_uos and line.product_uos.id) or line.product_uom.id,
|
||||
'company_id': order.company_id.id,
|
||||
'group_id': group_id,
|
||||
'invoice_state': (order.order_policy == 'picking') and '2binvoiced' or 'none',
|
||||
'sale_line_id': line.id
|
||||
}
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@ class sale_order(osv.osv):
|
||||
vals['route_ids'] = routes
|
||||
vals['warehouse_id'] = order.warehouse_id and order.warehouse_id.id or False
|
||||
vals['partner_dest_id'] = order.partner_shipping_id.id
|
||||
vals['invoice_state'] = (order.order_policy == 'picking') and '2binvoiced' or 'none'
|
||||
return vals
|
||||
|
||||
def _prepare_invoice(self, cr, uid, order, lines, context=None):
|
||||
|
||||
Reference in New Issue
Block a user