mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[ADD] Contract: payment term
This commit is contained in:
committed by
Francisco Ivan Anton Prieto
parent
0b4a97377a
commit
4f574d57d5
@@ -47,6 +47,10 @@ class AccountAnalyticAccount(models.Model):
|
|||||||
date_end = fields.Date(
|
date_end = fields.Date(
|
||||||
compute='_compute_date_end', string='Date End', store=True
|
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')
|
@api.depends('recurring_invoice_line_ids.date_end')
|
||||||
def _compute_date_end(self):
|
def _compute_date_end(self):
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
<group name="main">
|
<group name="main">
|
||||||
<group>
|
<group>
|
||||||
<field name="partner_id" required="1"/>
|
<field name="partner_id" required="1"/>
|
||||||
|
<field name="payment_term_id"/>
|
||||||
<field name="user_id"/>
|
<field name="user_id"/>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
|
|||||||
Reference in New Issue
Block a user