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

@ -15,22 +15,23 @@ msgstr ""
#. module: account_tax_one_vat
#. odoo-python
#: code:addons/account_tax_one_vat/models/account_move.py:0
#: code:addons/account_tax_one_vat/models/account_move.py
#, python-format
msgid ""
"%(message)s\n"
"%(errors)s"
msgstr ""
"%(message)s\n"
"%(errors)s"
#. module: account_tax_one_vat
#: model:ir.model,name:account_tax_one_vat.model_one_vat_mixin
msgid "Abstract the methods needed to ensure only one VAT tax is selected."
msgstr "Apstraktuj metode potrebne da se osigura da je odabran samo jedan PDV porez."
msgstr ""
"Apstraktuj metode potrebne da se osigura da je odabran samo jedan PDV porez."
#. module: account_tax_one_vat
#: model:ir.model.fields,help:account_tax_one_vat.field_res_company__account_tax_one_vat
#: model:ir.model.fields,help:account_tax_one_vat.field_res_config_settings__account_tax_one_vat
#: model_terms:ir.ui.view,arch_db:account_tax_one_vat.res_config_settings_view_form
msgid "Avoid the selection of multiple VAT taxes."
msgstr "Izbegni odabir više PDV poreza."
@ -46,7 +47,7 @@ msgstr "Postavke"
#. module: account_tax_one_vat
#. odoo-python
#: code:addons/account_tax_one_vat/models/account_move.py:0
#: code:addons/account_tax_one_vat/models/account_move.py
#, python-format
msgid "Invoice has a line %s with more than one vat tax"
msgstr "Faktura ima liniju %s sa više od jednog PDV poreza"
@ -68,21 +69,20 @@ msgstr "Stavka žurnala"
#. module: account_tax_one_vat
#. odoo-python
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py:0
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py
#, python-format
msgid "More than one VAT tax selected!"
msgstr "Više od jednog PDV poreza je odabrano!"
#. module: account_tax_one_vat
#. odoo-python
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py:0
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py
#, python-format
msgid "Multiple taxes of type VAT are selected. Only one is allowed."
msgstr "Odabrano je više poreza tipa PDV. Dozvoljen je samo jedan."
#. module: account_tax_one_vat
#: model:ir.model.fields,field_description:account_tax_one_vat.field_res_company__account_tax_one_vat
#: model:ir.model.fields,field_description:account_tax_one_vat.field_res_config_settings__account_tax_one_vat
msgid "One VAT tax only"
msgstr "Samo jedan PDV porez"
@ -103,14 +103,11 @@ msgstr "Prijedlozi poreza"
#. module: account_tax_one_vat
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_product__vat_id
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_template__vat_id
#: model_terms:ir.ui.view,arch_db:account_tax_one_vat.view_account_tax_search
msgid "VAT"
msgstr "PDV"
#. module: account_tax_one_vat
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_product__vat
#: model:ir.model.fields,field_description:account_tax_one_vat.field_product_template__vat
msgid "VAT name"
msgstr "PDV naziv"
@ -121,7 +118,7 @@ msgstr "PDV porez"
#. module: account_tax_one_vat
#. odoo-python
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py:0
#: code:addons/account_tax_one_vat/models/one_vat_mixin.py
#, python-format
msgid "You selected more than one tax of type VAT."
msgstr "Odabrali ste više od jednog poreza tipa PDV."