From 8b67b077b9093bbcebae28de4d636999a29d1368 Mon Sep 17 00:00:00 2001 From: houssine Date: Thu, 24 Jan 2019 18:01:30 +0100 Subject: [PATCH] [IMP] posibility to upload an attachment and link it to the request --- easy_my_coop/models/company.py | 1 + easy_my_coop/view/res_company_view.xml | 1 + easy_my_coop/view/subscription_template.xml | 13 ++++++++++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/easy_my_coop/models/company.py b/easy_my_coop/models/company.py index bba0386..41af509 100644 --- a/easy_my_coop/models/company.py +++ b/easy_my_coop/models/company.py @@ -14,6 +14,7 @@ class ResCompany(models.Model): default=lambda self: self.country_id) default_lang_id = fields.Many2one('res.lang', string="Default lang") + allow_id_card_upload = fields.Boolean(string="Allow ID Card upload") board_representative = fields.Char(string="Board representative name") signature_scan = fields.Binary(string="Board representative signature") property_cooperator_account = fields.Many2one('account.account', diff --git a/easy_my_coop/view/res_company_view.xml b/easy_my_coop/view/res_company_view.xml index b8d7465..b5de69a 100644 --- a/easy_my_coop/view/res_company_view.xml +++ b/easy_my_coop/view/res_company_view.xml @@ -8,6 +8,7 @@ + diff --git a/easy_my_coop/view/subscription_template.xml b/easy_my_coop/view/subscription_template.xml index 1919411..25d7081 100644 --- a/easy_my_coop/view/subscription_template.xml +++ b/easy_my_coop/view/subscription_template.xml @@ -166,7 +166,6 @@
- @@ -192,6 +190,7 @@
+
@@ -229,6 +228,14 @@
+ +
+ +
+ +
+
+