mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
Respect naming convention for compute method
This commit is contained in:
@@ -65,7 +65,7 @@ class ClaimLine(models.Model):
|
||||
('2_high', 'High'),
|
||||
('3_very_high', 'Very High')],
|
||||
'Priority', default='0_not_define',
|
||||
compute='_set_priority',
|
||||
compute='_compute_priority',
|
||||
store=True,
|
||||
readonly=False,
|
||||
help="Priority attention of claim line")
|
||||
@@ -198,7 +198,7 @@ class ClaimLine(models.Model):
|
||||
return super(ClaimLine, self).copy(default=std_default)
|
||||
|
||||
@api.depends('invoice_date', 'date')
|
||||
def _set_priority(self):
|
||||
def _compute_priority(self):
|
||||
"""
|
||||
To determine the priority of claim line
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user