Browse Source

[ADD] Contract: payment term

13.0-mig-contract
Thomas Binsfeld 6 years ago
committed by Administrator
parent
commit
ab4207d44e
  1. 4
      contract/models/contract.py
  2. 1
      contract/views/contract.xml

4
contract/models/contract.py

@ -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):

1
contract/views/contract.xml

@ -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>

Loading…
Cancel
Save