[ADD] expand annex model
This commit is contained in:
parent
b1ac67a554
commit
4f1eaab45e
@ -12,6 +12,14 @@ class ContractOrderAnnex(models.Model):
|
||||
contract_id = fields.Many2one(
|
||||
"res.partner.contract", string="Contract", readonly=True,
|
||||
)
|
||||
date_conclusion = fields.Date(
|
||||
string="Conclusion Date", default=fields.Date.today(),
|
||||
)
|
||||
prepaid_expance = fields.Float(string="Prepaid Expance", default=0)
|
||||
delivery_time = fields.Integer(related="order_id.delivery_time", readonly=True,)
|
||||
payment_term = fields.Many2one(
|
||||
"account.payment.term", related="order_id.payment_term_id", readonly=True,
|
||||
)
|
||||
|
||||
@api.onchange("contract_id")
|
||||
def _onchange_contract_id(self):
|
||||
|
@ -14,6 +14,9 @@
|
||||
<field name="name" placeholder="Leave empty for compute"/>
|
||||
<field name="contract_id" attrs="{'invisible': [('contract_id', '=', False)]}"/>
|
||||
<field name="order_id"/>
|
||||
<field name="date_conclusion"/>
|
||||
<field name="payment_term"/>
|
||||
<field name="delivery_time"/>
|
||||
</group>
|
||||
<group>
|
||||
<button name="action_print_form" type="object" string="Print" attrs="{'invisible': [('contract_id', '=', False)]}"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user