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

@ -45,22 +45,16 @@ msgstr "Otkaži"
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change__company_id
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change__company_id
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change_line__company_id
msgid "Company"
msgstr "Preduzeće"
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change__create_uid
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change__create_uid
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change_line__create_uid
msgid "Created by"
msgstr "Kreirao"
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change__create_date
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change__create_date
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change_line__create_date
msgid "Created on"
msgstr "Kreirano"
@ -76,11 +70,12 @@ msgid ""
"used by itself, however it can still be used in a group. 'adjustment' is "
"used to perform tax adjustment."
msgstr ""
"Određuje gdje je porez dostupan za odabir. Napomena: 'None' znači da se "
"porez ne može koristiti samostalno, ali se i dalje može koristiti u grupi. "
"'adjustment' se koristi za poreska usklađivanja."
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change__display_name
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change__display_name
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change_line__display_name
msgid "Display Name"
msgstr "Prikazani naziv"
@ -91,35 +86,26 @@ msgstr "Od poreza"
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change__id
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change__id
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change_line__id
msgid "ID"
msgstr "ID"
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change__invoice_ids
#: model_terms:ir.ui.view,arch_db:account_tax_change.account_move_apply_tax_change_view_form
msgid "Invoices"
msgstr "Fakture"
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change____last_update
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change____last_update
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change_line____last_update
msgid "Last Modified on"
msgstr "Zadnje mijenjano"
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change__write_uid
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change__write_uid
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change_line__write_uid
msgid "Last Updated by"
msgstr "Zadnji ažurirao"
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change__write_date
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change__write_date
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change_line__write_date
msgid "Last Updated on"
msgstr "Zadnje ažurirano"
@ -140,7 +126,6 @@ msgstr "Jednom potvrđene, promene poreza se ne mogu poništiti."
#. module: account_tax_change
#: model:ir.model.fields,field_description:account_tax_change.field_account_move_apply_tax_change__tax_change_id
#: model:ir.model.fields,field_description:account_tax_change.field_account_tax_change_line__tax_change_id
msgid "Tax Change"
msgstr "Promena poreza"
@ -161,13 +146,12 @@ msgstr "Linija mapiranja promene poreza"
#. module: account_tax_change
#: model:ir.actions.act_window,name:account_tax_change.account_tax_change_action
#: model:ir.ui.menu,name:account_tax_change.account_tax_change_menu
msgid "Tax changes"
msgstr "Promene poreza"
#. module: account_tax_change
#. odoo-python
#: code:addons/account_tax_change/models/account_tax_change.py:0
#: code:addons/account_tax_change/models/account_tax_change.py
#, python-format
msgid "Taxes From/To have to share the same type."
msgstr "Porezi Od/Za moraju imati isti tip."
@ -179,7 +163,7 @@ msgstr "Na porez"
#. module: account_tax_change
#. odoo-python
#: code:addons/account_tax_change/wizards/account_move_apply_tax_change.py:0
#: code:addons/account_tax_change/wizards/account_move_apply_tax_change.py
#, python-format
msgid ""
"Unable to update taxes on the following invoices:\n"
@ -189,6 +173,12 @@ msgid ""
"\n"
"These invoices could be already paid, posted or cancelled."
msgstr ""
"Nije moguće ažurirati poreze na sljedećim fakturama:\n"
"\n"
"- \n"
"- \n"
"\n"
"Ove fakture bi mogle biti već plaćene, proknjižene ili otkazane."
#. module: account_tax_change
#: model_terms:ir.ui.view,arch_db:account_tax_change.account_move_apply_tax_change_view_form