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:22 +01:00
parent 3ac97a2210
commit ee00be80d0
46 changed files with 459 additions and 441 deletions

View file

@ -25,7 +25,7 @@ msgstr "Povijest ugovora"
#. module: hr_contract_update_overtime
#. odoo-python
#: code:addons/hr_contract_update_overtime/models/hr_contract.py:0
#: code:addons/hr_contract_update_overtime/models/hr_contract.py
#, python-format
msgid "Overtime updated"
msgstr "Prekovremeno ažurirano"
@ -37,11 +37,12 @@ msgid ""
"them across their contract calendars. If you do not want this to happen, you"
" can Update Overtime from a specific contract."
msgstr ""
"Ova akcija će također reorganizirati sve godišnje odmere zaposlenika "
"distribucijom ih kroz kalendare njihovih ugovora. Ako ne želite da se to "
"dogodi, možete ažurirati prekovremeno iz specifičnog ugovora."
#. module: hr_contract_update_overtime
#: model:ir.actions.server,name:hr_contract_update_overtime.hr_contract_history_update_overtime_all_action
#: model_terms:ir.ui.view,arch_db:hr_contract_update_overtime.hr_contract_history_view_form
#: model_terms:ir.ui.view,arch_db:hr_contract_update_overtime.hr_contract_view_form
msgid "Update Overtime"
msgstr "Ažuriraj prekovremeno"