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 index=True
) )
tag_ids = fields.Many2many(comodel_name="contract.tag", string="Tags") 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):

5
contract/report/report_contract.xml

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

1
contract/views/contract.xml

@ -74,6 +74,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"

Loading…
Cancel
Save