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:19 +01:00
parent 6308fcff4e
commit a2b6553e74
176 changed files with 3428 additions and 3278 deletions

View file

@ -18,11 +18,13 @@ msgstr ""
msgid "<span>Disc.%</span>"
msgstr "<span>Pop.%</span>"
# taken from hr.po
#. module: account_invoice_triple_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.report_invoice_document
msgid "<span>Disc.2 %</span>"
msgstr "<span>Pop.2 %</span>"
# taken from hr.po
#. module: account_invoice_triple_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.report_invoice_document
msgid "<span>Disc.3 %</span>"
@ -33,11 +35,13 @@ msgstr "<span>Pop.3 %</span>"
msgid "Disc.1%"
msgstr "Popust1%"
# taken from hr.po
#. module: account_invoice_triple_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.invoice_triple_discount_form_view
msgid "Disc.2%"
msgstr "Popust 2 (%)"
# taken from hr.po
#. module: account_invoice_triple_discount
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.invoice_triple_discount_form_view
msgid "Disc.3%"
@ -50,40 +54,37 @@ msgstr "Popust (%)"
#. module: account_invoice_triple_discount
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_move_line__discount1
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_triple_discount_mixin__discount1
msgid "Discount 1 (%)"
msgstr "Popust 1 (%)"
#. module: account_invoice_triple_discount
#: model:ir.model.constraint,message:account_invoice_triple_discount.constraint_account_move_line_discount1_limit
#: model:ir.model.constraint,message:account_invoice_triple_discount.constraint_triple_discount_mixin_discount1_limit
msgid "Discount 1 must be lower than 100%."
msgstr "Popust 1 mora biti manji od 100%."
# taken from hr.po
#. module: account_invoice_triple_discount
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_move_line__discount2
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_triple_discount_mixin__discount2
msgid "Discount 2 (%)"
msgstr "Popust 2 (%)"
#. module: account_invoice_triple_discount
#: model:ir.model.constraint,message:account_invoice_triple_discount.constraint_account_move_line_discount2_limit
#: model:ir.model.constraint,message:account_invoice_triple_discount.constraint_triple_discount_mixin_discount2_limit
msgid "Discount 2 must be lower than 100%."
msgstr "Popust 2 mora biti manji od 100%."
# taken from hr.po
#. module: account_invoice_triple_discount
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_account_move_line__discount3
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_triple_discount_mixin__discount3
msgid "Discount 3 (%)"
msgstr "Popust 3 (%)"
#. module: account_invoice_triple_discount
#: model:ir.model.constraint,message:account_invoice_triple_discount.constraint_account_move_line_discount3_limit
#: model:ir.model.constraint,message:account_invoice_triple_discount.constraint_triple_discount_mixin_discount3_limit
msgid "Discount 3 must be lower than 100%."
msgstr "Popust 3 mora biti manji od 100%."
# taken from hr.po
#. module: account_invoice_triple_discount
#: model:ir.model,name:account_invoice_triple_discount.model_account_move_line
msgid "Journal Item"
@ -91,7 +92,6 @@ msgstr "Stavka dnevnika"
#. module: account_invoice_triple_discount
#: model:ir.model.fields,field_description:account_invoice_triple_discount.field_triple_discount_mixin__discount
#: model_terms:ir.ui.view,arch_db:account_invoice_triple_discount.invoice_triple_discount_form_view
msgid "Total discount"
msgstr "Ukupni popust"