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:18 +01:00
parent dec5981eb0
commit 65b1657f38
18 changed files with 1447 additions and 145 deletions

View file

@ -13,22 +13,25 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
# taken from hr.po
#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_res_company
msgid "Companies"
msgstr "Tvrtke"
# taken from hr.po
#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_res_config_settings
msgid "Config Settings"
msgstr "Postavke"
# taken from hr.po
#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__embed_pdf_in_ubl_xml_invoice
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_config_settings__embed_pdf_in_ubl_xml_invoice
msgid "Embed PDF in UBL XML Invoice"
msgstr "Pridruži PDF u UBL XML datuteku"
# taken from hr.po
#. module: account_invoice_ubl
#: model_terms:ir.ui.view,arch_db:account_invoice_ubl.view_move_form
msgid "Generate UBL XML File"
@ -36,14 +39,18 @@ msgstr "Generiraj UBL XML datoteku"
#. module: account_invoice_ubl
#: model:ir.model.fields,help:account_invoice_ubl.field_res_company__embed_pdf_in_ubl_xml_invoice
#: model:ir.model.fields,help:account_invoice_ubl.field_res_config_settings__embed_pdf_in_ubl_xml_invoice
msgid ""
"If active, the standalone UBL Invoice XML file will include the PDF of the "
"invoice in base64 under the node 'AdditionalDocumentReference'. For example,"
" to be compliant with the e-fff standard used in Belgium, you should "
"activate this option."
msgstr ""
"Ako je aktivno, samostalna UBL faktura XML datoteka će uključiti PDF fakture"
" u base64 formatu pod čvorom 'AdditionalDocumentReference'. Na primjer, da "
"biste bili usklađeni sa e-fff standardom korištenim u Belgiji, trebate "
"aktivirati ovu opciju."
# taken from hr.po
#. module: account_invoice_ubl
#: model_terms:ir.ui.view,arch_db:account_invoice_ubl.view_account_config_settings
msgid "Include the PDF of the invoice in the standalone UBL Invoice XML file."
@ -54,6 +61,7 @@ msgstr "Uključi PDF računa u samostalnu UBL XML datoteku."
msgid "Journal Entry"
msgstr "Žurnal"
# taken from hr.po
#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_ir_actions_report
msgid "Report Action"
@ -64,6 +72,7 @@ msgstr "Akcija izvještaja"
msgid "Universal Business Language (UBL)"
msgstr "Universal Business Language (UBL)"
# taken from hr.po
#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__xml_format_in_pdf_invoice
msgid "XML Format embedded in PDF invoice"