[12.0][ADD] - Add note field to contract

This commit is contained in:
sbejaoui
2019-11-04 13:03:13 +01:00
committed by Francisco Ivan Anton Prieto
parent a5ae569e4f
commit f2de4aafe9
3 changed files with 8 additions and 0 deletions

View File

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

View File

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

View File

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