Skip to content

Commit

Permalink
[MIG] account_move_substate: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Oct 4, 2023
1 parent 2565db5 commit 407d82d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion account_move_substate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Account Move Sub State",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"category": "Accounting & Finance",
"author": "360ERP, Ecosoft, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@
>
<field name="name">Verified</field>
<field name="model_id" ref="account.model_account_move" />
<field name="subject">Your journal entry ${object.name} is verified</field>
<field name="subject">Your journal entry {{object.name}} is verified</field>
<field name="use_default_to" eval="True" />
<field name="body_html" type="html">
<div>
Dear ${object.user_id.name or 'accounting user'},<br />
This email is to inform that your journal entry ${object.name} was verified by accounting manager.
Dear <t t-out="object.user_id.name or 'accounting user'" />,<br />
This email is to inform that your journal entry <t
t-out="object.name or ''"
/> was verified by accounting manager.
<br /><br />
Best Regards,
% if user.signature
<t t-if="user.signature">
<br />
${user.signature | safe}
% endif
</div>
<t t-out="user.signature or ''" />
</t>
</div>
</field>
<field name="lang">{{ object.partner_id.lang }}</field>
<field name="auto_delete" eval="True" />
</record>
</odoo>
2 changes: 1 addition & 1 deletion account_move_substate/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _track_template(self, changes):
{
"composition_mode": "comment",
"auto_delete_message": True,
"subtype_id": self.env["ir.model.data"].xmlid_to_res_id(
"subtype_id": self.env["ir.model.data"]._xmlid_to_res_id(
"mail.mt_note"
),
"email_layout_xmlid": "mail.mail_notification_light",
Expand Down

0 comments on commit 407d82d

Please sign in to comment.