From: Bhumi Thakkar (Open ERP) Date: Wed, 22 Aug 2012 11:30:34 +0000 (+0530) Subject: [IMP] Remove property_ids:value from _prepare_order_line_procurement function which... X-Git-Tag: 7.0-server~2037^2~24^2~1 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=9eac8aadaf0b2f309f00afa958319428dd6b6064;hp=44ccdd6a59c0407b5d507f6f170872461a0e8a74;p=odoo%2Fodoo.git [IMP] Remove property_ids:value from _prepare_order_line_procurement function which is unused and also created field. bzr revid: bth@tinyerp.com-20120822113034-p7rth1ps829bt0qd --- diff --git a/addons/sale/sale.py b/addons/sale/sale.py index ad066c3..d2bb4e1 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -845,8 +845,7 @@ class sale_order(osv.osv): 'procure_method': line.type, 'move_id': move_id, 'company_id': order.company_id.id, - 'note': '\n'.join(line.name.split('\n')[1:]), - 'property_ids': [(6, 0, [x.id for x in line.property_ids])] + 'note': '\n'.join(line.name.split('\n')[1:]) } def _prepare_order_line_move(self, cr, uid, order, line, picking_id, date_planned, context=None): @@ -1490,10 +1489,4 @@ class mail_message(osv.osv): mail_message() -class procurement_order(osv.osv): - _inherit = "procurement.order" - - _columns = { - 'property_ids': fields.many2many('sale.order', 'sale_order_property_rel', 'procurement_id','order_id', 'Properties'), - } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: