Browse Source

[ADD] b_shift : traductions

pull/143/head
Elouan Le Bars 5 years ago
parent
commit
e03dc65532
  1. 1316
      beesdoo_shift/i18n/fr.po
  2. 1317
      beesdoo_shift/i18n/fr_BE.po
  3. 2556
      beesdoo_shift/i18n/nl_BE.po
  4. 10
      beesdoo_shift/models/attendance_sheet.py
  5. 4
      beesdoo_shift/models/cooperative_status.py
  6. 2
      beesdoo_shift/models/planning.py
  7. 4
      beesdoo_shift/models/task.py
  8. 2
      beesdoo_shift/views/cooperative_status.xml
  9. 4
      beesdoo_shift/views/task.xml

1316
beesdoo_shift/i18n/fr.po
File diff suppressed because it is too large
View File

1317
beesdoo_shift/i18n/fr_BE.po
File diff suppressed because it is too large
View File

2556
beesdoo_shift/i18n/nl_BE.po
File diff suppressed because it is too large
View File

10
beesdoo_shift/models/attendance_sheet.py

@ -100,7 +100,7 @@ class AttendanceSheetShiftExpected(models.Model):
def _constrain_compensation_no(self):
if self.state == "absent":
if not self.compensation_no:
raise UserError(_("You must choose a compensation number."))
raise UserError(_("A compensation number is required"))
class AttendanceSheetShiftAdded(models.Model):
@ -157,7 +157,7 @@ class AttendanceSheet(models.Model):
)
week = fields.Char(
string="Week",
help="Computed from planning names",
help="Computed from planning name",
compute="_compute_week",
)
@ -178,7 +178,7 @@ class AttendanceSheet(models.Model):
readonly=True,
help="Indicative maximum number of workers.",
)
notes = fields.Text("Notes", default="")
notes = fields.Text("Notes", default="", help="Notes about the attendance for the Members Office")
is_annotated = fields.Boolean(
compute="_compute_is_annotated",
string="Is annotated",
@ -322,7 +322,7 @@ class AttendanceSheet(models.Model):
def on_barcode_scanned(self, barcode):
if self.state == "validated":
raise UserError(
_("You cannot modify a validated attendance sheet.")
_("A validated attendance sheet can't be modified")
)
worker = self.env["res.partner"].search([("barcode", "=", barcode)])
@ -543,7 +543,7 @@ class AttendanceSheet(models.Model):
raise UserError(_("The sheet has already been validated."))
if start_time_dt > datetime.now():
raise UserError(
_("You must wait for the shifts to begin to validate sheet.")
_("Attendance sheet can only be validated once the shifts have started.")
)
# Fields validation

4
beesdoo_shift/models/cooperative_status.py

@ -43,8 +43,8 @@ class CooperativeStatus(models.Model):
info_session = fields.Boolean('Information Session ?')
info_session_date = fields.Datetime('Information Session Date')
super = fields.Boolean("Super Cooperative")
sr = fields.Integer("Compteur shift regulier", default=0)
sc = fields.Integer("Compteur shift de compensation", default=0)
sr = fields.Integer("Regular shifts counter", default=0)
sc = fields.Integer("Compensation shifts counter", default=0)
time_extension = fields.Integer("Extension Days NB", default=0, help="Addtional days to the automatic extension, 5 mean that you have a total of 15 extension days of default one is set to 10")
holiday_start_time = fields.Date("Holidays Start Day")
holiday_end_time = fields.Date("Holidays End Day")

2
beesdoo_shift/models/planning.py

@ -139,7 +139,7 @@ class TaskTemplate(models.Model):
def _nb_worker_max(self):
for rec in self:
if len(rec.worker_ids) > rec.worker_nb:
raise UserError(_('you cannot assign more worker then the number maximal define on the template'))
raise UserError(_('You cannot assign more workers than the maximal number defined on template.'))
@api.onchange('start_time', 'end_time')

4
beesdoo_shift/models/task.py

@ -87,8 +87,8 @@ class Task(models.Model):
if datetime.now() < start_time_dt:
if self.state in ["done", "absent_2", "absent_1", "absent_0"]:
raise UserError(_(
"You cannot set shift state to 'present' "
"or 'absent' for a future shift."
"Shift state of a future shift "
"can't be set to 'present' or 'absent'."
))
@api.constrains('is_regular', 'is_compensation')

2
beesdoo_shift/views/cooperative_status.xml

@ -149,7 +149,7 @@
<field name="date" />
</group>
</group>
<separator string="Affected cooperator" />
<separator string="Assigned cooperator" />
<field name="line_ids" readonly="1">
<tree>
<field name="cooperator_id" />

4
beesdoo_shift/views/task.xml

@ -202,7 +202,7 @@
<!-- Actions -->
<record model="ir.actions.act_window" id="action_task">
<field name="name">Task Action</field>
<field name="name">Shifts</field>
<field name="res_model">beesdoo.shift.shift</field>
<field name="view_mode">kanban,calendar,tree,form,pivot</field>
<field name="context">{'search_default_today': 1,
@ -213,7 +213,7 @@
<menuitem name="Planning" id="menu_task_top" parent="menu_root"
sequence="1" groups="beesdoo_shift.group_shift_attendance" />
<!-- actions -->
<menuitem name="Shift" id="menu_task" parent="menu_task_top"
<menuitem name="Shifts" id="menu_task" parent="menu_task_top"
action="action_task" groups="beesdoo_shift.group_shift_attendance" />
</odoo>
Loading…
Cancel
Save