Browse Source

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

pull/412/head
sbejaoui 5 years ago
parent
commit
fd10c32f4f
  1. 1
      contract/models/contract.py
  2. 5
      contract/report/report_contract.xml
  3. 1
      contract/views/contract.xml

1
contract/models/contract.py

@ -92,6 +92,7 @@ class ContractContract(models.Model):
index=True
)
tag_ids = fields.Many2many(comodel_name="contract.tag", string="Tags")
note = fields.Text(string="Notes")
@api.multi
def _inverse_partner_id(self):

5
contract/report/report_contract.xml

@ -68,6 +68,11 @@
</table>
</div>
</div>
<div class="row" id="note">
<strong>Notes: </strong>
<br></br>
<p t-field="o.note"/>
</div>
</div>
</t>
</t>

1
contract/views/contract.xml

@ -74,6 +74,7 @@
string="Recurring Invoices">
<field name="contract_line_ids"
context="{'default_contract_type': contract_type}"/>
<field name="note"/>
</page>
<page name="info" string="Other Information">
<field name="create_invoice_visibility"

Loading…
Cancel
Save