Skip to content

Commit

Permalink
[FIX] tracking mail template
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 committed Oct 24, 2023
1 parent 746f033 commit 32263ec
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hr_expense_substate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Expense Report Sub State",
"version": "15.0.1.0.0",
"category": "Tools",
"category": "Human Resources",
"author": "Ecosoft,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr-expense",
"license": "AGPL-3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<record id="mail_template_data_hr_expense_substate_verified" model="mail.template">
<field name="name">Verified</field>
<field name="model_id" ref="hr_expense.model_hr_expense_sheet" />
<field name="subject">Your expense report ${object.name} is verified</field>
<field name="subject">Your expense report {{ object.name }} is verified</field>
<field name="use_default_to" eval="True" />
<field name="body_html" type="html">
<div>
Dear ${object.employee_id.name or 'requester'},<br />
This email is to inform that your expense report ${object.name} was verified by approver team.
Dear {{ object.employee_id.name or 'Requester' }},<br />
This email is to inform that your expense report {{ object.name }} was verified by approver team.
<br /><br />
Thank you,
<br />
Expand Down
3 changes: 0 additions & 3 deletions hr_expense_substate/demo/hr_expense_substate_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
<field name="name">To Verify</field>
<field name="sequence">1</field>
<field name="target_state_value_id" ref="target_state_value_submit" />
<field name="active" eval="False" />
</record>
<record id="base_substate_checked" model="base.substate">
<field name="name">Checked</field>
<field name="sequence">2</field>
<field name="target_state_value_id" ref="target_state_value_submit" />
<field name="active" eval="False" />
</record>
<record id="base_substate_verified" model="base.substate">
<field name="name">Verified</field>
Expand All @@ -21,6 +19,5 @@
name="mail_template_id"
ref="hr_expense_substate.mail_template_data_hr_expense_substate_verified"
/>
<field name="active" eval="False" />
</record>
</odoo>
2 changes: 1 addition & 1 deletion hr_expense_substate/models/hr_expense.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ class BaseSubstateType(models.Model):


class HrExpenseSheet(models.Model):
_inherit = ["hr.expense.sheet", "base.substate.mixin"]
_name = "hr.expense.sheet"
_inherit = ["hr.expense.sheet", "base.substate.mixin"]
_state_field = "state"
2 changes: 1 addition & 1 deletion hr_expense_substate/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This module allows to add a substate to expense report.
This module allows to add a substate to an expense report.
For each expense report state you can define a substate.
We this module you can define substate which allow you to extend expense report workflow.
For example, you can add substate "To Verify" if
Expand Down

0 comments on commit 32263ec

Please sign in to comment.