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:25 +01:00
parent 3e11ca2158
commit 49081670b3
84 changed files with 1364 additions and 1082 deletions

View file

@ -13,17 +13,19 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
# taken from hr.po
#. module: mrp_bom_component_menu
#: model_terms:ir.ui.view,arch_db:mrp_bom_component_menu.mrp_bom_line_view_filter
msgid "Bill Of Material"
msgstr "Sastavnica"
# taken from hr.po
#. module: mrp_bom_component_menu
#: model:ir.actions.act_window,name:mrp_bom_component_menu.mrp_bom_form_action2
#: model:ir.ui.menu,name:mrp_bom_component_menu.menu_mrp_bom_form_action2
msgid "Bill of Material Components"
msgstr "Komponente sastavnice"
# taken from hr.po
#. module: mrp_bom_component_menu
#: model_terms:ir.actions.act_window,help:mrp_bom_component_menu.mrp_bom_form_action2
msgid ""
@ -31,27 +33,35 @@ msgid ""
" used to create master bills of materials. Use this menu to\n"
" search in which BoM a specific component is used."
msgstr ""
"Komponente sastavnica su same komponente i nus proiuvodi\n"
" korišteni za sastavljanje glavnih sastavnica. Koristite ovaj izbornik\n"
" za provjeru u kojoj sastavnici se koristi određena komponenta."
# taken from hr.po
#. module: mrp_bom_component_menu
#: model_terms:ir.actions.act_window,help:mrp_bom_component_menu.mrp_bom_form_action2
msgid "Click to add a component to a bill of material."
msgstr "Kliknite za dodavanje komponente u sastavnicu."
# taken from hr.po
#. module: mrp_bom_component_menu
#: model_terms:ir.ui.view,arch_db:mrp_bom_component_menu.mrp_bom_line_view_filter
msgid "Default Unit of Measure"
msgstr "Zadana jedinica mjere"
# taken from hr.po
#. module: mrp_bom_component_menu
#: model_terms:ir.ui.view,arch_db:mrp_bom_component_menu.mrp_bom_line_view_filter
msgid "Group By..."
msgstr "Grupiraj po.."
# taken from hr.po
#. module: mrp_bom_component_menu
#: model_terms:ir.ui.view,arch_db:mrp_bom_component_menu.mrp_bom_line_view_filter
msgid "Product"
msgstr "Proizvod"
# taken from hr.po
#. module: mrp_bom_component_menu
#: model_terms:ir.ui.view,arch_db:mrp_bom_component_menu.mrp_bom_line_view_filter
msgid "Search Bill Of Material Components"