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:15 +01:00
parent 47b80c5600
commit bc314398d6
21 changed files with 297 additions and 337 deletions

View file

@ -13,21 +13,25 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
# taken from hr.po
#. module: crm_location
#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form
msgid "City completion"
msgstr "Završetak grada"
# taken from hr.po
#. module: crm_location
#: model:ir.model,name:crm_location.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Potencijalni klijent"
# taken from hr.po
#. module: crm_location
#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id
msgid "Location"
msgstr "Lokacija"
# taken from hr.po
#. module: crm_location
#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id
msgid "Use the city name or the zip code to search the location"