mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[12.0][ADD] - Add note field to contract
This commit is contained in:
committed by
Francisco Ivan Anton Prieto
parent
a5ae569e4f
commit
f2de4aafe9
@@ -91,6 +91,8 @@ class ContractContract(models.Model):
|
|||||||
string='Commercial Entity',
|
string='Commercial Entity',
|
||||||
index=True
|
index=True
|
||||||
)
|
)
|
||||||
|
tag_ids = fields.Many2many(comodel_name="contract.tag", string="Tags")
|
||||||
|
note = fields.Text(string="Notes")
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def _inverse_partner_id(self):
|
def _inverse_partner_id(self):
|
||||||
|
|||||||
@@ -68,6 +68,11 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row" id="note">
|
||||||
|
<strong>Notes: </strong>
|
||||||
|
<br></br>
|
||||||
|
<p t-field="o.note"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
|
|||||||
@@ -73,6 +73,7 @@
|
|||||||
string="Recurring Invoices">
|
string="Recurring Invoices">
|
||||||
<field name="contract_line_ids"
|
<field name="contract_line_ids"
|
||||||
context="{'default_contract_type': contract_type}"/>
|
context="{'default_contract_type': contract_type}"/>
|
||||||
|
<field name="note"/>
|
||||||
</page>
|
</page>
|
||||||
<page name="info" string="Other Information">
|
<page name="info" string="Other Information">
|
||||||
<field name="create_invoice_visibility"
|
<field name="create_invoice_visibility"
|
||||||
|
|||||||
Reference in New Issue
Block a user