rename compute method in payment_order

This commit is contained in:
Emanuel Cino
2015-09-24 16:02:12 +02:00
parent 125ce25e35
commit 1a42ce7acf

View File

@@ -35,11 +35,11 @@ class PaymentOrder(models.Model):
readonly=True, states={'draft': [('readonly', False)]})
mode_type = fields.Many2one('payment.mode.type', related='mode.type',
string='Payment Type')
total = fields.Float(compute='_total', store=True)
total = fields.Float(compute='_compute_total', store=True)
@api.depends('line_ids', 'line_ids.amount')
@api.one
def _total(self):
def _compute_total(self):
self.total = sum(self.mapped('line_ids.amount') or [0.0])
@api.multi