[IMP] odex_benefit: IMP benefit
This commit is contained in:
parent
cc5bd4fc79
commit
189847cf26
|
|
@ -18444,3 +18444,18 @@ msgstr "لديها إعاقة جسدية أو عقلية ولكنها تجاوز
|
|||
#, python-format
|
||||
msgid "Moves"
|
||||
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 "المرفقات المطلوبة للخدمات"
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue