Merge pull request #5367 from expsa/add_brach_ids

ADD branch ids for product
This commit is contained in:
NossibaElhadi 2025-11-12 03:21:14 +03:00 committed by GitHub
commit 278c3ea179
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 2 deletions

View File

@ -1092,4 +1092,11 @@ msgstr ""
#: code:addons/ensan_donation_request/models/donation_recurring.py:0
#, python-format
msgid "🔁 Recurring profile resumed. Next donation scheduled on %s."
msgstr ""
msgstr ""
#. module: ensan_donation_request
#: model:ir.model.fields,field_description:ensan_donation_request.field_product_product__department_ids
#: model:ir.model.fields,field_description:ensan_donation_request.field_product_template__department_ids
msgid "Departments"
msgstr "الفروع"

View File

@ -9,3 +9,11 @@ class ProductTemplate(models.Model):
string='Is Recurring Donation Product',
help='Enable this if the product can be used in recurring donations.'
)
department_ids = fields.Many2many(
'hr.department',
'takaful_sponsorship_department_rel',
'sponsorship_id',
'department_id',
string='Departments',
domain=[('is_branch', '=', True)]
)

View File

@ -18,7 +18,9 @@
</field>
<field name="payment_method_id" position="after">
<field name="department_ids" widget="many2many_tags"/>
</field>
</field>
</record>