[FIX] account_voucher: add oldname on price_unit towards amount

This commit is contained in:
Cedric Snauwaert
2015-09-15 14:39:35 +02:00
parent 3f5ee0db8c
commit adb17252cb
+1 -1
View File
@@ -319,7 +319,7 @@ class account_voucher_line(models.Model):
account_id = fields.Many2one('account.account', string='Account',
required=True, domain=[('deprecated', '=', False)],
help="The income or expense account related to the selected product.")
price_unit = fields.Monetary(string='Unit Price', required=True)
price_unit = fields.Monetary(string='Unit Price', required=True, oldname='amount')
price_subtotal = fields.Monetary(string='Amount',
store=True, readonly=True, compute='_compute_subtotal')
quantity = fields.Float(digits=dp.get_precision('Product Unit of Measure'),