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

@ -20,7 +20,11 @@ msgid ""
"title=\"By saving this change, the customer vat number will also be "
"updated.\" attrs=\"{'invisible': [('partner_vat_update', '=', False)]}\"/>"
msgstr ""
"<span class=\"fa fa-exclamation-triangle text-warning oe_edit_only\" "
"title=\"Spašavanjem ove promjene ažuriraće se i PDV broj kupca.\" "
"attrs=\"{'invisible': [('partner_vat_update', '=', False)]}\"/>"
# taken from hr.po
#. module: crm_lead_vat
#: model:ir.model,name:crm_lead_vat.model_crm_lead
msgid "Lead/Opportunity"
@ -31,13 +35,15 @@ msgstr "Potencijalni klijent"
msgid "Partner VAT will Update"
msgstr "PDV partnera će se ažurirati"
# taken from hr.po
#. module: crm_lead_vat
#: model:ir.model.fields,field_description:crm_lead_vat.field_crm_lead__vat
msgid "TIN"
msgstr "OIB"
# taken from hr.po
#. module: crm_lead_vat
#: model:ir.model.fields,help:crm_lead_vat.field_crm_lead__vat
msgid ""
"Tax Identification Number. The first 2 characters are the country code."
msgstr ""
msgstr "OIB. Prva 2 slova su oznaka države."