[IMP] odex_benefit: IMP benefit*
This commit is contained in:
parent
de88ffc566
commit
43d4692077
|
|
@ -17591,12 +17591,6 @@ msgstr "يجب أن تكون جميع الأسر المحددة من نفس ال
|
||||||
msgid "Please select at least one family"
|
msgid "Please select at least one family"
|
||||||
msgstr "رجاءً اختر أسرة واحدة على الأقل"
|
msgstr "رجاءً اختر أسرة واحدة على الأقل"
|
||||||
|
|
||||||
#. module: odex_benefit
|
|
||||||
#: code:addons/odex_benefit/wizards/researcher_wizard.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "Please select a researcher"
|
|
||||||
msgstr "رجاءً اختر أخصائيًا"
|
|
||||||
|
|
||||||
#. module: odex_benefit
|
#. module: odex_benefit
|
||||||
#: model:ir.model.fields,field_description:odex_benefit.field_committees_line__mobile
|
#: model:ir.model.fields,field_description:odex_benefit.field_committees_line__mobile
|
||||||
msgid "Mobile Number"
|
msgid "Mobile Number"
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,6 @@ class ReasearcherFamilyWizard(models.TransientModel):
|
||||||
def submit_family(self):
|
def submit_family(self):
|
||||||
if not self.benefit_ids:
|
if not self.benefit_ids:
|
||||||
raise ValidationError(_('Please select at least one family'))
|
raise ValidationError(_('Please select at least one family'))
|
||||||
if not self.researcher_team:
|
|
||||||
raise ValidationError(_('Please select a researcher'))
|
|
||||||
branches = self.benefit_ids.mapped('branch_custom_id')
|
branches = self.benefit_ids.mapped('branch_custom_id')
|
||||||
if len(branches) > 1:
|
if len(branches) > 1:
|
||||||
raise ValidationError(_('All selected families must be from the same branch'))
|
raise ValidationError(_('All selected families must be from the same branch'))
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@
|
||||||
<field name="assignment_type" required="1"/>
|
<field name="assignment_type" required="1"/>
|
||||||
<field name="researcher_team" required="1"
|
<field name="researcher_team" required="1"
|
||||||
domain="[('branch_custom_id', '=',branch_custom_id)]"
|
domain="[('branch_custom_id', '=',branch_custom_id)]"
|
||||||
|
attrs="{'required': [('assignment_type', '!=', 'end_assignment')]}"
|
||||||
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
||||||
</group>
|
</group>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue