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,41 +13,39 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
# taken from hr.po
#. module: mrp_attachment_mgmt
#. odoo-python
#: code:addons/mrp_attachment_mgmt/models/mrp_workorder.py:0
#: code:addons/mrp_attachment_mgmt/models/mrp_workorder.py
#, python-format
msgid ""
"%(error_count)d Product(s) without drawing:\n"
"%(error_msg)s"
msgstr ""
"%(error_count)d Proizvod(i) bez crteža:\n"
"%(error_msg)s"
#. module: mrp_attachment_mgmt
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.mrp_production_form_view
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.workorder_attachments_mrp_workorder_form_view
msgid "<span class=\"o_stat_text\">BoM<br/>Attachments</span>"
msgstr "<span class=\"o_stat_text\">Sastavnica<br/>Prilozi</span>"
#. module: mrp_attachment_mgmt
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.mrp_bom_see_attachments_product_product_form_view
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.mrp_bom_see_attachments_product_template_form_view
msgid "<span class=\"o_stat_text\">BoMs<br/>Attachments</span>"
msgstr "<span class=\"o_stat_text\">Sastavnice<br/>Prilozi</span>"
#. module: mrp_attachment_mgmt
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.mrp_bom_see_attachments_form_view
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.mrp_bom_see_attachments_product_product_form_view
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.mrp_bom_see_attachments_product_template_form_view
msgid "<span class=\"o_stat_text\">Components<br/>Attachments</span>"
msgstr "<span class=\"o_stat_text\">Komponente<br/>Prilozi</span>"
#. module: mrp_attachment_mgmt
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.mrp_bom_see_attachments_form_view
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.mrp_production_form_view
#: model_terms:ir.ui.view,arch_db:mrp_attachment_mgmt.workorder_attachments_mrp_workorder_form_view
msgid "<span class=\"o_stat_text\">Product<br/>Attachments</span>"
msgstr "<span class=\"o_stat_text\">Proizvod<br/>Prilozi</span>"
# taken from hr.po
#. module: mrp_attachment_mgmt
#: model:ir.model,name:mrp_attachment_mgmt.model_mrp_bom
msgid "Bill of Material"
@ -55,10 +53,10 @@ msgstr "Sastavnica"
#. module: mrp_attachment_mgmt
#: model:ir.actions.server,name:mrp_attachment_mgmt.action_see_workorder_bom_attachments
#: model:ir.actions.server,name:mrp_attachment_mgmt.action_show_production_bom_attachments
msgid "BoM Attachments"
msgstr "Prilozi sastavnice"
# taken from hr.po
#. module: mrp_attachment_mgmt
#: model:ir.model,name:mrp_attachment_mgmt.model_product_template
msgid "Product"
@ -66,20 +64,22 @@ msgstr "Proizvod"
#. module: mrp_attachment_mgmt
#: model:ir.actions.server,name:mrp_attachment_mgmt.action_see_workorder_attachments
#: model:ir.actions.server,name:mrp_attachment_mgmt.action_show_production_attachments
msgid "Product Attachments"
msgstr "Prilozi artikla"
# taken from hr.po
#. module: mrp_attachment_mgmt
#: model:ir.model,name:mrp_attachment_mgmt.model_product_product
msgid "Product Variant"
msgstr "Varijanta proizvoda"
# taken from hr.po
#. module: mrp_attachment_mgmt
#: model:ir.model,name:mrp_attachment_mgmt.model_mrp_production
msgid "Production Order"
msgstr "Proizvodni nalog"
# taken from hr.po
#. module: mrp_attachment_mgmt
#: model:ir.model,name:mrp_attachment_mgmt.model_mrp_workorder
msgid "Work Order"