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

@ -0,0 +1,143 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. module: sale_order_import_edifact
#: code:addons/sale_order_import_edifact/wizard/sale_order_import.py
#, python-format
msgid "%s document is not a Sale Order document"
msgstr "%s dokument nije dokument prodajnog naloga"
#. module: sale_order_import_edifact
#: model:ir.model,name:sale_order_import_edifact.model_business_document_import
msgid "Common methods to import business documents"
msgstr "Zajedničke metode za uvoz poslovnih dokumenata"
#. module: sale_order_import_edifact
#: model:ir.model.fields,field_description:sale_order_import_edifact.field_sale_order_import__doc_type
msgid "Document Type"
msgstr "Tip dokumenta"
#. module: sale_order_import_edifact
#: model:ir.model.fields.selection,name:sale_order_import_edifact.selection__sale_order_import__import_type__edifact
msgid "EDIFACT"
msgstr "EDIFACT"
#. module: sale_order_import_edifact
#: model:product.template,name:sale_order_import_edifact.product_product_edifact1_dm_product_template
msgid "EDIFACT Demo 1"
msgstr "EDIFACT Demo 1"
#. module: sale_order_import_edifact
#: model:product.template,name:sale_order_import_edifact.product_product_edifact2_dm_product_template
msgid "EDIFACT Demo 2"
msgstr "EDIFACT Demo 2"
#. module: sale_order_import_edifact
#: model:product.template,name:sale_order_import_edifact.product_product_edifact3_dm_product_template
msgid "EDIFACT Demo 3"
msgstr "EDIFACT Demo 3"
#. module: sale_order_import_edifact
#: model:ir.model.fields,field_description:sale_order_import_edifact.field_sale_order_import__edifact_ok
msgid "Edifact Ok"
msgstr "Edifact u redu"
#. module: sale_order_import_edifact
#: model:ir.model.fields,field_description:sale_order_import_edifact.field_sale_order_import__file_ext
msgid "File Ext"
msgstr "Ekstenzija datoteke"
#. module: sale_order_import_edifact
#: model:ir.model.fields,field_description:sale_order_import_edifact.field_sale_order_import__import_type
msgid "Import Type"
msgstr "Tip uvoza"
#. module: sale_order_import_edifact
#: model:ir.model.fields,field_description:sale_order_import_edifact.field_sale_order_import__json_data_preview
msgid "Json Data Preview"
msgstr "Pregled JSON podataka"
#. module: sale_order_import_edifact
#: model_terms:ir.ui.view,arch_db:sale_order_import_edifact.sale_order_import_form
msgid "Parse"
msgstr "Parsiraj"
#. module: sale_order_import_edifact
#: code:addons/sale_order_import_edifact/models/business_document_import.py
#, python-format
msgid ""
"Partner GLN Code: %(party)s not found in order file: '%(file)s' from VAT "
"registration number '%(vat)s'."
msgstr ""
"GLN kod partnera: %(party)s nije pronađen u datoteci naloga: '%(file)s' iz "
"VAT registarskog broja '%(vat)s'."
#. module: sale_order_import_edifact
#: model:product.template,name:sale_order_import_edifact.product_product_edifact4_dm_product_template
msgid "Product1"
msgstr "Proizvod1"
#. module: sale_order_import_edifact
#: model:product.template,name:sale_order_import_edifact.product_product_edifact5_dm_product_template
msgid "Product2"
msgstr "Proizvod2"
#. module: sale_order_import_edifact
#: model:product.template,name:sale_order_import_edifact.product_product_edifact6_dm_product_template
msgid "Product3"
msgstr "Proizvod3"
#. module: sale_order_import_edifact
#: model:product.template,name:sale_order_import_edifact.product_product_edifact7_dm_product_template
msgid "Product4"
msgstr "Proizvod4"
#. module: sale_order_import_edifact
#: model:product.template,name:sale_order_import_edifact.product_product_edifact8_dm_product_template
msgid "Product5"
msgstr "Proizvod5"
#. module: sale_order_import_edifact
#: model:ir.model.fields,field_description:sale_order_import_edifact.field_sale_order_import__release
msgid "Release"
msgstr "Verzija"
#. module: sale_order_import_edifact
#: model:ir.model,name:sale_order_import_edifact.model_sale_order_import
msgid "Sale Order Import from Files"
msgstr "Uvoz prodajnog naloga iz datoteka"
#. module: sale_order_import_edifact
#: model:ir.model.fields,help:sale_order_import_edifact.field_sale_order_import__import_type
msgid "Select a type which you want to import"
msgstr "Odaberite tip koji želite uvoziti"
#. module: sale_order_import_edifact
#: code:addons/sale_order_import_edifact/models/business_document_import.py
#, python-format
msgid "Unknown"
msgstr "Nepoznat"
#. module: sale_order_import_edifact
#: model:ir.model.fields,help:sale_order_import_edifact.field_sale_order_import__json_data_preview
msgid ""
"Used by the btn `button_parse_order_preview` to preview data before "
"importing"
msgstr ""
"Koristi dugme `button_parse_order_preview` za pregled podataka prije uvoza"
#. module: sale_order_import_edifact
#: code:addons/sale_order_import_edifact/models/business_document_import.py
#, python-format
msgid ""
"partner_identification_gln module should be installed with a xmlid: "
"partner_identification_gln_number_category"
msgstr ""
"partner_identification_gln modul trebao bi biti instaliran s xmlid: "
"partner_identification_gln_number_category"