[ADD] Contract: payment term

This commit is contained in:
Thomas Binsfeld
2018-12-21 16:04:11 +01:00
committed by sbejaoui
parent 494892f6b1
commit 60f589a41f
2 changed files with 5 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ class AccountAnalyticAccount(models.Model):
date_end = fields.Date(
compute='_compute_date_end', string='Date End', store=True
)
payment_term_id = fields.Many2one(
comodel_name='account.payment.term',
string='Payment Terms',
)
@api.depends('recurring_invoice_line_ids.date_end')
def _compute_date_end(self):