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

@ -19,6 +19,8 @@ msgid ""
"<strong>Global Discounts</strong>\n"
" <br/>"
msgstr ""
"<strong>Global Popusts</strong>\n"
"<br/>"
#. module: account_global_discount
#: model_terms:ir.ui.view,arch_db:account_global_discount.report_invoice_document
@ -27,21 +29,16 @@ msgstr "<strong>Međuzbir bez popusta</strong>"
#. module: account_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount__account_id
#: model:ir.model.fields,field_description:account_global_discount.field_global_discount__account_id
msgid "Account"
msgstr "Konto"
#. module: account_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_bank_statement_line__amount_untaxed_before_global_discounts
#: model:ir.model.fields,field_description:account_global_discount.field_account_move__amount_untaxed_before_global_discounts
#: model:ir.model.fields,field_description:account_global_discount.field_account_move_line__base_before_global_discounts
#: model:ir.model.fields,field_description:account_global_discount.field_account_payment__amount_untaxed_before_global_discounts
msgid "Amount Untaxed Before Discounts"
msgstr "Iznos bez poreza pre popusta"
#. module: account_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount__account_analytic_id
#: model:ir.model.fields,field_description:account_global_discount.field_global_discount__account_analytic_id
msgid "Analytic account"
msgstr "Analitički konto"
@ -107,7 +104,6 @@ msgstr "Prikazani naziv"
#. module: account_global_discount
#: model:ir.model,name:account_global_discount.model_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_invoice_global_discount__global_discount_id
msgid "Global Discount"
msgstr "Globalni popust"
@ -118,7 +114,6 @@ msgstr "Stavka globalnog popusta"
#. module: account_global_discount
#: model:ir.ui.menu,name:account_global_discount.menu_account_global_discount
#: model_terms:ir.ui.view,arch_db:account_global_discount.view_move_form
msgid "Global Discounts"
msgstr "Globalni popust"
@ -129,7 +124,7 @@ msgstr "ID"
#. module: account_global_discount
#. odoo-python
#: code:addons/account_global_discount/models/account_move.py:0
#: code:addons/account_global_discount/models/account_move.py
#, python-format
msgid "Incompatible taxes found for global discounts."
msgstr "Pronađeni nekompatibilni porezi za globalne popuste."
@ -141,25 +136,16 @@ msgstr "Faktura"
#. module: account_global_discount
#: model:ir.model,name:account_global_discount.model_account_invoice_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_bank_statement_line__invoice_global_discount_ids
#: model:ir.model.fields,field_description:account_global_discount.field_account_move__invoice_global_discount_ids
#: model:ir.model.fields,field_description:account_global_discount.field_account_move_line__invoice_global_discount_id
#: model:ir.model.fields,field_description:account_global_discount.field_account_payment__invoice_global_discount_ids
msgid "Invoice Global Discount"
msgstr "Globalni popust fakture"
#. module: account_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_bank_statement_line__global_discount_ids
#: model:ir.model.fields,field_description:account_global_discount.field_account_move__global_discount_ids
#: model:ir.model.fields,field_description:account_global_discount.field_account_payment__global_discount_ids
#: model_terms:ir.ui.view,arch_db:account_global_discount.view_move_form
msgid "Invoice Global Discounts"
msgstr "Globalni popusti fakture"
#. module: account_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_bank_statement_line__global_discount_ids_readonly
#: model:ir.model.fields,field_description:account_global_discount.field_account_move__global_discount_ids_readonly
#: model:ir.model.fields,field_description:account_global_discount.field_account_payment__global_discount_ids_readonly
msgid "Invoice Global Discounts (readonly)"
msgstr "Globalni popusti fakture (samo čitanje)"
@ -200,8 +186,6 @@ msgstr "Porezi"
#. module: account_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_bank_statement_line__amount_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_move__amount_global_discount
#: model:ir.model.fields,field_description:account_global_discount.field_account_payment__amount_global_discount
msgid "Total Global Discounts"
msgstr "Ukupno globalnih popusta"
@ -212,7 +196,7 @@ msgstr "Iznos bez poreza pre popusta"
#. module: account_global_discount
#. odoo-python
#: code:addons/account_global_discount/models/account_move.py:0
#: code:addons/account_global_discount/models/account_move.py
#, python-format
msgid "With global discounts, taxes in lines are required."
msgstr "Sa globalnim popustima, porezi u linijama su obavezni."