Tower: upload om_account_followup 19.0.1.0.2 (was 1.0.2, via marketplace)
This commit is contained in:
13
addons/om_account_followup/models/account_move.py
Normal file
13
addons/om_account_followup/models/account_move.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from odoo import api, fields, models, _
|
||||
|
||||
|
||||
class AccountMoveLine(models.Model):
|
||||
_inherit = 'account.move.line'
|
||||
|
||||
followup_line_id = fields.Many2one('followup.line', 'Follow-up Level')
|
||||
followup_date = fields.Date('Latest Follow-up')
|
||||
result = fields.Float(compute='_get_result', string="Balance Amount")
|
||||
|
||||
def _get_result(self):
|
||||
for aml in self:
|
||||
aml.result = aml.debit - aml.credit
|
||||
Reference in New Issue
Block a user