mirror of
https://github.com/Kalenis/kalenislims.git
synced 2023-12-14 07:13:04 +01:00
lims: Control fractions: check Zone
This commit is contained in:
parent
802912d0b8
commit
ba25dc4d10
|
@ -6927,6 +6927,10 @@ msgctxt "model:ir.message,text:msg_no_mrt_fraction_type"
|
|||
msgid "There is no MRT fraction type configured"
|
||||
msgstr "No hay configurado ningún tipo de fracción MRT"
|
||||
|
||||
msgctxt "model:ir.message,text:msg_no_party_zone"
|
||||
msgid "Party \"%(party)s\" does not have a Zone configured"
|
||||
msgstr "La entidad «%(party)s» no tiene configurada una Zona"
|
||||
|
||||
msgctxt "model:ir.message,text:msg_no_rm_default_configuration"
|
||||
msgid "Missing default configuration for RM fraction type"
|
||||
msgstr "Falta la configuración por defecto para el tipo de fracción RM"
|
||||
|
|
|
@ -208,6 +208,9 @@
|
|||
<record model="ir.message" id="msg_no_entry_control">
|
||||
<field name="text">There is no default entry control for this work year</field>
|
||||
</record>
|
||||
<record model="ir.message" id="msg_no_party_zone">
|
||||
<field name="text">Party "%(party)s" does not have a Zone configured</field>
|
||||
</record>
|
||||
<record model="ir.message" id="msg_no_con_fraction_type">
|
||||
<field name="text">There is no Control fraction type configured</field>
|
||||
</record>
|
||||
|
|
|
@ -2480,8 +2480,12 @@ class AddFractionRMBMZ(Wizard):
|
|||
if not workyear.default_entry_control:
|
||||
raise UserError(gettext('lims.msg_no_entry_control'))
|
||||
|
||||
laboratory = self.start.planification.laboratory
|
||||
entry = Entry(workyear.default_entry_control.id)
|
||||
if not entry.party.entry_zone:
|
||||
raise UserError(gettext('lims.msg_no_party_zone',
|
||||
party=entry.party.rec_name))
|
||||
|
||||
laboratory = self.start.planification.laboratory
|
||||
obj_description = self._get_obj_description(self.start)
|
||||
|
||||
# new sample
|
||||
|
@ -2909,8 +2913,12 @@ class AddFractionBRE(Wizard):
|
|||
if not workyear.default_entry_control:
|
||||
raise UserError(gettext('lims.msg_no_entry_control'))
|
||||
|
||||
laboratory = self.start.planification.laboratory
|
||||
entry = Entry(workyear.default_entry_control.id)
|
||||
if not entry.party.entry_zone:
|
||||
raise UserError(gettext('lims.msg_no_party_zone',
|
||||
party=entry.party.rec_name))
|
||||
|
||||
laboratory = self.start.planification.laboratory
|
||||
obj_description = self._get_obj_description(self.start)
|
||||
|
||||
# new sample
|
||||
|
@ -3268,8 +3276,12 @@ class AddFractionMRT(Wizard):
|
|||
if not workyear.default_entry_control:
|
||||
raise UserError(gettext('lims.msg_no_entry_control'))
|
||||
|
||||
laboratory = self.start.planification.laboratory
|
||||
entry = Entry(workyear.default_entry_control.id)
|
||||
if not entry.party.entry_zone:
|
||||
raise UserError(gettext('lims.msg_no_party_zone',
|
||||
party=entry.party.rec_name))
|
||||
|
||||
laboratory = self.start.planification.laboratory
|
||||
obj_description = self._get_obj_description(self.start)
|
||||
|
||||
# new sample
|
||||
|
@ -4461,8 +4473,12 @@ class CreateFractionControl(Wizard):
|
|||
if not workyear.default_entry_control:
|
||||
raise UserError(gettext('lims.msg_no_entry_control'))
|
||||
|
||||
laboratory = self.start.laboratory
|
||||
entry = Entry(workyear.default_entry_control.id)
|
||||
if not entry.party.entry_zone:
|
||||
raise UserError(gettext('lims.msg_no_party_zone',
|
||||
party=entry.party.rec_name))
|
||||
|
||||
laboratory = self.start.laboratory
|
||||
obj_description = self._get_obj_description(self.start)
|
||||
|
||||
# new sample
|
||||
|
|
Loading…
Reference in a new issue