Fix hr_payroll_clone: AttributeError, add journal/work_type support, use standard wizard

- Fix AttributeError: hr.payslip.run has no company_id field
- Change batch name format from MM/YYYY to YYYY-MM (remove 'Payslips' prefix)
- Add journal_id field and copy from previous batch
- Add work_type_id support (Redovni rad/Regular work) in timesheet generation
- Add duplicate check for existing timesheets to prevent duplication
- Use standard Odoo hr.payslip.employees wizard for payslip generation
- Update version to 16.0.1.1.0

🤖 assisted by claude

🤖 assisted by claude
This commit is contained in:
Ernad Husremovic 2025-11-04 22:43:31 +01:00
parent 77a8838cf7
commit dc4d96d97a
23 changed files with 4281 additions and 2575 deletions

View file

@ -15,184 +15,215 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-python
#: code:addons/hr_holidays_attendance/models/hr_leave_type.py:0
#: code:addons/hr_holidays_attendance/models/hr_leave_type.py
#, python-format
msgid "%s hours available"
msgstr "Odsustva odbačena"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model,name:hr_holidays_attendance.model_hr_attendance
msgid "Attendance"
msgstr "Prisutnost"
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-javascript
#: code:addons/hr_holidays_attendance/static/src/xml/time_off_calendar.xml:0
#: code:addons/hr_holidays_attendance/static/src/xml/time_off_calendar.xml
#, python-format
msgid "Available"
msgstr "Dostupno"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model,name:hr_holidays_attendance.model_res_company
msgid "Companies"
msgstr "Tvrtke"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_hr_leave_allocation__hr_attendance_overtime
msgid "Count Extra Hours"
msgstr "Uračunajte dodatne sate"
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-javascript
#: code:addons/hr_holidays_attendance/static/src/xml/time_off_calendar.xml:0
#: code:addons/hr_holidays_attendance/static/src/xml/time_off_calendar.xml
#, python-format
msgid "Days"
msgstr "Dani/a"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_hr_leave_type__overtime_deductible
#: model_terms:ir.ui.view,arch_db:hr_holidays_attendance.hr_employee_view_form_inherit
#: model_terms:ir.ui.view,arch_db:hr_holidays_attendance.res_users_view_form
msgid "Deduct Extra Hours"
msgstr "Odbijte dodatne sate"
# taken from hr.po
#. module: hr_holidays_attendance
#: model_terms:ir.ui.view,arch_db:hr_holidays_attendance.hr_leave_allocation_overtime_view_form
msgid "Discard"
msgstr "Odbaci"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:hr.leave.type,name:hr_holidays_attendance.holiday_status_extra_hours
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_hr_leave__overtime_id
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_hr_leave_allocation__overtime_id
msgid "Extra Hours"
msgstr "Dodatni sati"
# taken from hr.po
#. module: hr_holidays_attendance
#: model_terms:ir.ui.view,arch_db:hr_holidays_attendance.hr_attendance_holidays_hr_leave_allocation_view_form_inherit
#: model_terms:ir.ui.view,arch_db:hr_holidays_attendance.hr_leave_view_form
msgid "Extra Hours Available"
msgstr "Raspoloživi dodatni sati"
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-javascript
#: code:addons/hr_holidays_attendance/static/src/xml/time_off_calendar.xml:0
#: code:addons/hr_holidays_attendance/static/src/xml/time_off_calendar.xml
#, python-format
msgid "Hours"
msgstr "Sati"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_hr_leave_type__hr_attendance_overtime
msgid "Hr Attendance Overtime"
msgstr "Hr prisustvo prekovremeni rad"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.actions.act_window,name:hr_holidays_attendance.hr_leave_allocation_overtime_action
#: model:ir.actions.act_window,name:hr_holidays_attendance.hr_leave_allocation_overtime_manager_action
msgid "New Allocation Request"
msgstr "Novi zahtjev za dodjelom"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model.fields,help:hr_holidays_attendance.field_hr_leave_type__overtime_deductible
msgid ""
"Once a time off of this type is approved, extra hours in attendances will be"
" deducted."
msgstr ""
"Nakon što je odsustvo ove vrste odobreno biti će umanjeni dodatni sati "
"prisutnosti."
#. module: hr_holidays_attendance
#. odoo-python
#: code:addons/hr_holidays_attendance/models/hr_leave_allocation.py:0
#: code:addons/hr_holidays_attendance/models/hr_leave_allocation.py
#, python-format
msgid ""
"Only an Officer or Administrator is allowed to edit the allocation duration "
"in this status."
msgstr ""
"Samo službenik ili administrator može da uređuje trajanje raspodjele u ovom "
"statusu."
#. module: hr_holidays_attendance
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_hr_leave__overtime_deductible
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_hr_leave_allocation__overtime_deductible
msgid "Overtime Deductible"
msgstr "Prekovremeno odbitno"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_res_users__request_overtime
msgid "Request Overtime"
msgstr "Zahtjev za prekovremeni rad"
# taken from hr.po
#. module: hr_holidays_attendance
#: model_terms:ir.ui.view,arch_db:hr_holidays_attendance.hr_leave_allocation_overtime_view_form
msgid "Save"
msgstr "Spremi"
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-python
#: code:addons/hr_holidays_attendance/models/hr_leave_allocation.py:0
#: code:addons/hr_holidays_attendance/models/hr_leave_allocation.py
#, python-format
msgid ""
"The employee does not have enough extra hours to extend this allocation."
msgstr ""
msgstr "Zaposlenik nema dovoljno dodatnih sati za produljenje ove dodjele."
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-python
#: code:addons/hr_holidays_attendance/models/hr_leave.py:0
#: code:addons/hr_holidays_attendance/models/hr_leave.py
#, python-format
msgid "The employee does not have enough extra hours to extend this leave."
msgstr "Zaposlenik nema dovoljno dodatnih sati da bi mogao zatražiti produljenje ovog odsustva."
msgstr ""
"Zaposlenik nema dovoljno dodatnih sati da bi mogao zatražiti produljenje "
"ovog odsustva."
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-python
#: code:addons/hr_holidays_attendance/models/hr_leave_allocation.py:0
#: code:addons/hr_holidays_attendance/models/hr_leave_allocation.py
#, python-format
msgid ""
"The employee does not have enough extra hours to request this allocation."
msgstr ""
msgstr "Zaposlenik nema dovoljno dodatnih sati da bi zatražio ovu dodjelu."
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-python
#: code:addons/hr_holidays_attendance/models/hr_leave.py:0
#: code:addons/hr_holidays_attendance/models/hr_leave.py
#, python-format
msgid "The employee does not have enough extra hours to request this leave."
msgstr "Zaposlenik nema dovoljno dodatnih sati da bi mogao kreirati zahtjev za ovo odsustvo."
msgstr ""
"Zaposlenik nema dovoljno dodatnih sati da bi mogao kreirati zahtjev za ovo "
"odsustvo."
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-python
#: code:addons/hr_holidays_attendance/models/hr_leave_allocation.py:0
#: code:addons/hr_holidays_attendance/models/hr_leave_allocation.py
#, python-format
msgid ""
"The employee does not have enough overtime hours to request this leave."
msgstr ""
"Zaposlenik nema dovoljno prekovremenih sati da bi mogao kreirati zahtjev za "
"ovo odsustvo."
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model,name:hr_holidays_attendance.model_hr_leave
msgid "Time Off"
msgstr "Odsustva"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model,name:hr_holidays_attendance.model_hr_leave_allocation
msgid "Time Off Allocation"
msgstr "Dodjela"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model,name:hr_holidays_attendance.model_hr_leave_type
msgid "Time Off Type"
msgstr "Vrsta odsustva"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_hr_leave__employee_overtime
#: model:ir.model.fields,field_description:hr_holidays_attendance.field_hr_leave_allocation__employee_overtime
msgid "Total Overtime"
msgstr "Ukupan prekovremeni rad"
# taken from hr.po
#. module: hr_holidays_attendance
#: model:ir.model,name:hr_holidays_attendance.model_res_users
msgid "User"
msgstr "Korisnik"
# taken from hr.po
#. module: hr_holidays_attendance
#. odoo-python
#: code:addons/hr_holidays_attendance/models/hr_leave.py:0
#: code:addons/hr_holidays_attendance/models/hr_leave.py
#, python-format
msgid "You do not have enough extra hours to request this leave"
msgstr "Nemate dovoljno dodatnih sati da biste mogli kreirati zahtjev za ovo odsustvo"
msgstr ""
"Nemate dovoljno dodatnih sati da biste mogli kreirati zahtjev za ovo "
"odsustvo"