From 5ebfd1e625b1a741da5018f968908f43bfb45a4f Mon Sep 17 00:00:00 2001 From: Stepan Savelyev Date: Wed, 15 Jan 2020 17:42:05 +0500 Subject: [PATCH] [ADD] extends model res_partner_document_templates --- models/res_partner_contract.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/models/res_partner_contract.py b/models/res_partner_contract.py index 621f2b9..6880f71 100644 --- a/models/res_partner_contract.py +++ b/models/res_partner_contract.py @@ -136,6 +136,23 @@ class DocumentTemplate(models.Model): attachment_id = fields.Many2one( "ir.attachment", string="Template Attachment", required=True, ) + document_type = fields.Selection( + string="Type of document", + selection=[ + ("contract", "Contract"), + ("annex", "Annex"), + ("addition", "Addition"), + ] + ) + document_type_name = fields.Selection( + string="Document", + selection=[ + ("specification", "Specification"), + ("approval_list", "Approval List"), + ("act_at", "Act of Acceptance and Transfer"), + ("act_ad", "Act of Acceptance and Delivery"), + ] + ) company_type = fields.Selection( selection=[ ("person", "Individual"),