ADD branch ids for product
This commit is contained in:
parent
bdc3b7ccfe
commit
df42ed39f2
|
|
@ -1093,3 +1093,10 @@ msgstr ""
|
|||
#, python-format
|
||||
msgid "🔁 Recurring profile resumed. Next donation scheduled on %s."
|
||||
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 "الفروع"
|
||||
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,9 @@
|
|||
|
||||
</field>
|
||||
|
||||
|
||||
<field name="payment_method_id" position="after">
|
||||
<field name="department_ids" widget="many2many_tags"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue