Browse Source
Merge pull request #37 from coopiteasy/12.0-flag-easymycoop-mail-template
Merge pull request #37 from coopiteasy/12.0-flag-easymycoop-mail-template
[IMP] add easy my coop flag on mail templatepull/45/head
Houssine BAKKALI
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 114 additions and 50 deletions
-
2easy_my_coop/__manifest__.py
-
8easy_my_coop/data/mail_template_data.xml
-
1easy_my_coop/models/__init__.py
-
20easy_my_coop/models/account_invoice.py
-
23easy_my_coop/models/coop.py
-
12easy_my_coop/models/mail_template.py
-
43easy_my_coop/models/operation_request.py
-
4easy_my_coop/report/easy_my_coop_report.xml
-
1easy_my_coop/views/email_template_view.xml
-
2easy_my_coop/views/res_partner_view.xml
-
3easy_my_coop_loan/data/mail_template_data.xml
-
1easy_my_coop_loan/models/__init__.py
-
14easy_my_coop_loan/models/loan_issue_line.py
-
10easy_my_coop_loan/models/mail_template.py
-
6easy_my_coop_taxshelter_report/data/mail_template_data.xml
-
12easy_my_coop_taxshelter_report/models/mail_template.py
@ -0,0 +1,12 @@ |
|||
from odoo import models, fields |
|||
|
|||
|
|||
class MailTemplate(models.Model): |
|||
_inherit = "mail.template" |
|||
|
|||
# def init(self): |
|||
# for template_id in EMAIL_TEMPLATE_IDS: |
|||
# mail_template = self.env.ref(template_id) |
|||
# mail_template.easy_my_coop = True |
|||
|
|||
easy_my_coop = fields.Boolean(string="Easy my coop mail template") |
@ -0,0 +1,10 @@ |
|||
from odoo import models |
|||
|
|||
|
|||
class MailTemplate(models.Model): |
|||
_inherit = "mail.template" |
|||
|
|||
# def init(self): |
|||
# for template_id in EMAIL_TEMPLATE_IDS: |
|||
# mail_template = self.env.ref(template_id) |
|||
# mail_template.easy_my_coop = True |
Write
Preview
Loading…
Cancel
Save
Reference in new issue