diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 4a3fb3af2..5e4245684 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -11,7 +11,7 @@ { "name": "Recurring - Contracts Management", - "version": "14.0.1.2.3", + "version": "15.0.1.0.0", "category": "Contract Management", "license": "AGPL-3", "author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)", @@ -35,7 +35,6 @@ "wizards/contract_manually_create_invoice.xml", "wizards/contract_contract_terminate.xml", "views/contract_tag.xml", - "views/assets.xml", "views/abstract_contract_line.xml", "views/contract.xml", "views/contract_line.xml", @@ -46,5 +45,12 @@ "views/contract_terminate_reason.xml", "views/contract_portal_templates.xml", ], + "assets": { + "web.assets_backend": [ + "contract/static/src/js/section_and_note_fields_backend.js", + ], + "web.assets_frontend": ["contract/static/src/scss/frontend.scss"], + "web.assets_tests": ["contract/static/src/js/contract_portal_tour.js"], + }, "installable": True, } diff --git a/contract/data/mail_template.xml b/contract/data/mail_template.xml index 209de8480..1a6f06666 100644 --- a/contract/data/mail_template.xml +++ b/contract/data/mail_template.xml @@ -4,93 +4,121 @@ Email Contract Template ${(object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '')|safe} + >{{ (object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '') }} ${object.company_id.name} Contract (Ref ${object.name or 'n/a'}) - ${object.partner_id.id} + >{{ object.company_id.name }} Contract (Ref {{ object.name or 'n/a' }}) + {{ object.partner_id.id }} Contract - ${object.partner_id.lang} - -

Hello ${object.partner_id.name or ''},

-

A new contract has been created:

+ {{ object.partner_id.lang }} + +
+

Hello ,

+

A new contract has been created:

-

-   REFERENCES
-   Contract: ${object.name}
- % if object.date_start: -   Contract Date Start: ${object.date_start or ''}
- % endif +

+ &nbsp;&nbsp;REFERENCES
+ &nbsp;&nbsp;Contract:
+ + &nbsp;&nbsp;Contract Date Start:
+
- % if object.user_id: - % if object.user_id.email: -   Your Contact: ${object.user_id.name} - % else: -   Your Contact: ${object.user_id.name} - % endif - % endif -

+ + + &nbsp;&nbsp;Your Contact: + + + &nbsp;&nbsp;Your Contact: + + +

-
-

If you have any questions, do not hesitate to contact us.

-

Thank you for choosing ${object.company_id.name or 'us'}!

-
-
-
-

- ${object.company_id.name}

-
-
-

- View contract -
- ]]>
+
Contract Modification Template ${(object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '')|safe} + >{{ (object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '') }}
${object.company_id.name} Contract (Ref ${object.name or 'n/a'}) - Modifications + >{{ object.company_id.name }} Contract (Ref {{ object.name or 'n/a' }}) - Modifications
- ${object.partner_id.lang} - {{ object.partner_id.lang }} +

Hello

We have modifications on the contract that we want to notify you.

- ]]>
+