Skip to content

Commit a88067b

Browse files
committed
[MIG] edi_mail_import_oca: Migration to 19.0
1 parent b64d22a commit a88067b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

edi_mail_import_oca/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
{
55
"name": "Edi Mail Import Oca",
66
"summary": """Process emails as EDI exchange recordsç""",
7-
"version": "17.0.1.0.0",
7+
"version": "19.0.1.0.0",
88
"license": "AGPL-3",
99
"author": "Dixmit,Odoo Community Association (OCA)",
1010
"website": "https://github.com/OCA/edi-framework",
11-
"depends": ["edi_oca", "mail"],
11+
"depends": ["edi_core_oca", "mail"],
1212
"data": [
1313
"views/edi_exchange_type.xml",
1414
],

edi_mail_import_oca/models/edi_exchange_record.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import logging
77
import re
88

9-
from odoo import _, api, models
9+
from odoo import api, models
1010
from odoo.exceptions import UserError
1111

1212
_logger = logging.getLogger(__name__)
@@ -22,7 +22,9 @@ def message_new(self, msg_dict, custom_values=None):
2222
custom_values=custom_values,
2323
)
2424
if record.type_id.direction != "input":
25-
raise UserError(_("Received email for non-incoming exchange type."))
25+
raise UserError(
26+
self.env._("Received email for non-incoming exchange type.")
27+
)
2628
if record.type_id.mail_as_attachment:
2729
new_message_dict = msg_dict.copy()
2830
attachments = new_message_dict.pop("attachments", [])

edi_mail_import_oca/views/edi_exchange_type.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<odoo>
55
<record model="ir.ui.view" id="edi_exchange_type_view_form">
66
<field name="model">edi.exchange.type</field>
7-
<field name="inherit_id" ref="edi_oca.edi_exchange_type_view_form" />
7+
<field name="inherit_id" ref="edi_core_oca.edi_exchange_type_view_form" />
88
<field name="arch" type="xml">
99
<xpath expr="//group[@name='config']" position="after">
1010
<group invisible="direction != 'input'">

0 commit comments

Comments
 (0)