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:25 +01:00
parent 3e11ca2158
commit 49081670b3
84 changed files with 1364 additions and 1082 deletions

View file

@ -30,25 +30,28 @@ msgstr "Završni sat"
#. module: hr_timesheet_begin_end
#. odoo-python
#: code:addons/hr_timesheet_begin_end/models/account_analytic_line.py:0
#: code:addons/hr_timesheet_begin_end/models/account_analytic_line.py
#, python-format
msgid "Lines can't overlap:\n"
msgstr "Linije se ne mogu preklapati:\\\n"
#. module: hr_timesheet_begin_end
#. odoo-python
#: code:addons/hr_timesheet_begin_end/models/account_analytic_line.py:0
#: code:addons/hr_timesheet_begin_end/models/account_analytic_line.py
#, python-format
msgid ""
"The beginning hour (%(html_start)s) must precede the ending hour "
"(%(html_stop)s)."
msgstr ""
"Početni sat (%(html_start)s) mora prethoditi završnom satu (%(html_stop)s)."
#. module: hr_timesheet_begin_end
#. odoo-python
#: code:addons/hr_timesheet_begin_end/models/account_analytic_line.py:0
#: code:addons/hr_timesheet_begin_end/models/account_analytic_line.py
#, python-format
msgid ""
"The duration (%(html_unit_amount)s) must be equal to the difference between "
"the hours (%(html_hours)s)."
msgstr ""
"Trajanje (%(html_unit_amount)s) mora biti jednako razlici između sati "
"(%(html_hours)s)."