mirror of
https://github.com/bringout/odoomates.git
synced 2026-04-26 19:52:04 +02:00
Initial commit: Odoomates Odoo packages (12 packages)
This commit is contained in:
commit
3b38c49bf0
526 changed files with 34983 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue