[IMP] odex_benefit: IMP benefit

This commit is contained in:
younes 2026-01-07 13:48:00 +01:00
parent cc5bd4fc79
commit 189847cf26
2 changed files with 16 additions and 11 deletions

View File

@ -18443,4 +18443,19 @@ msgstr "لديها إعاقة جسدية أو عقلية ولكنها تجاوز
#: model_terms:ir.ui.view,arch_db:odex_benefit.payment_orders_form
#, python-format
msgid "Moves"
msgstr "القيد المحاسبي"
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 "المرفقات المطلوبة للخدمات"

View File

@ -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()