[FIX] stock_account: default on lst_price instead of list_price

The list_price field doesn't take the extra price of variations
into account. Actually, it's not even a field of product.product.
The lst_price, however, is defined on both product.template and
product.product and does account for the extra price of variations.

OPW 659330
This commit is contained in:
David Monjoie 2015-12-15 12:25:44 +01:00
parent ccc26849e4
commit f1ed73e5ea
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class stock_move(osv.osv):
})[pricelist] })[pricelist]
if price: if price:
return price return price
return move_line.product_id.list_price return move_line.product_id.lst_price
def _get_invoice_line_vals(self, cr, uid, move, partner, inv_type, context=None): def _get_invoice_line_vals(self, cr, uid, move, partner, inv_type, context=None):
fp_obj = self.pool.get('account.fiscal.position') fp_obj = self.pool.get('account.fiscal.position')