From 60f589a41fc1aaceeea131471f137bd04489ab38 Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Fri, 21 Dec 2018 16:04:11 +0100 Subject: [PATCH] [ADD] Contract: payment term --- contract/models/contract.py | 4 ++++ contract/views/contract.xml | 1 + 2 files changed, 5 insertions(+) diff --git a/contract/models/contract.py b/contract/models/contract.py index 6579c02b..14e0be39 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -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): diff --git a/contract/views/contract.xml b/contract/views/contract.xml index 1a982b66..957b338e 100644 --- a/contract/views/contract.xml +++ b/contract/views/contract.xml @@ -43,6 +43,7 @@ +