115
123
'margin': fields.function(_product_margin, string='Margin', help="It gives profitability by calculating the difference between the Unit Price and the cost price.",
117
125
'sale.order.line': (_get_order, ['order_id', 'margin'], 20), # AX-23: trigger de order_id le module nan_product_pack writtant directement des sale.order.line associé à un order_id
118
'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line'], 20),
126
'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line', 'global_discount'], 20),
120
128
'kg': fields.function(_get_kg, type='float',
121
129
string='KG', help=u"Coefficient Somme(prix vente) / Somme(prix achat)",