diff --git a/odex25_benefit/odex_benefit/i18n/ar_001.po b/odex25_benefit/odex_benefit/i18n/ar_001.po index a21d05bfd..0c1492fcb 100644 --- a/odex25_benefit/odex_benefit/i18n/ar_001.po +++ b/odex25_benefit/odex_benefit/i18n/ar_001.po @@ -18443,4 +18443,19 @@ msgstr "لديها إعاقة جسدية أو عقلية ولكنها تجاوز #: model_terms:ir.ui.view,arch_db:odex_benefit.payment_orders_form #, python-format msgid "Moves" -msgstr "القيد المحاسبي" \ No newline at end of file +msgstr "القيد المحاسبي" + +#. module: odex_benefit +#: model:ir.model.fields,field_description:odex_benefit.field_account_move__required_attachment_line_count +#: model:ir.model.fields,field_description:odex_benefit.field_payment_orders__attachment_line_count +msgid "Required Attachments" +msgstr "عدد المرفقات المطلوبة" + +#. module: odex_benefit +#: code:addons/odex_benefit/models/account_move_line.py:0 +#: code:addons/odex_benefit/models/payment_order.py:0 +#: model_terms:ir.ui.view,arch_db:odex_benefit.account_move_inherit_form_view +#: model_terms:ir.ui.view,arch_db:odex_benefit.payment_orders_form +#, python-format +msgid "Service Required Attachments" +msgstr "المرفقات المطلوبة للخدمات" \ No newline at end of file diff --git a/odex25_benefit/odex_benefit/models/account_move_line.py b/odex25_benefit/odex_benefit/models/account_move_line.py index 1362ca3a1..3d6114822 100644 --- a/odex25_benefit/odex_benefit/models/account_move_line.py +++ b/odex25_benefit/odex_benefit/models/account_move_line.py @@ -34,16 +34,6 @@ class AccountMove(models.Model): ('type', '=', 'services') ], limit=1) - if not payment_order: - return { - 'type': 'ir.actions.client', - 'tag': 'display_notification', - 'params': { - 'title': _('Error'), - 'message': _('Cannot find the originating payment order.'), - 'type': 'warning', - } - } attachment_ids = payment_order.service_requests_ids.mapped('attachment_lines').ids ctx = self.env.context.copy()