Merge pull request #5754 from expsa/ff

[IMP] odex_benefit: IMP benefit*
This commit is contained in:
kchyounes19 2025-12-18 08:02:43 +01:00 committed by GitHub
commit 4efb84b4db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 8 deletions

View File

@ -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"

View File

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

View File

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