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:14 +01:00
parent 5d57f7bd69
commit 121c31a202
2 changed files with 40 additions and 46 deletions

View file

@ -30,7 +30,6 @@ msgstr "Ai izvršavanje"
#. module: ai_oca_bridge_chatter
#: model:ir.model.fields.selection,name:ai_oca_bridge_chatter.selection__ai_bridge__payload_type__chatter
#: model:ir.model.fields.selection,name:ai_oca_bridge_chatter.selection__ai_bridge__usage__chatter
msgid "Chatter"
msgstr "Razgovor"
@ -50,6 +49,8 @@ msgid ""
"Defines how this bridge is used. If 'Thread', it will be used in the mail "
"thread context."
msgstr ""
"Definiše kako se ovaj most koristi. Ako je 'Thread', koristiće se u "
"kontekstu email niti."
#. module: ai_oca_bridge_chatter
#: model:ir.model,name:ai_oca_bridge_chatter.model_mail_channel
@ -63,14 +64,14 @@ msgstr "Tip korisnog tereta"
#. module: ai_oca_bridge_chatter
#. odoo-python
#: code:addons/ai_oca_bridge_chatter/models/ai_bridge_execution.py:0
#: code:addons/ai_oca_bridge_chatter/models/ai_bridge_execution.py
#, python-format
msgid "The message does not belong to any channel."
msgstr "Poruka ne pripada nijednom kanalu."
#. module: ai_oca_bridge_chatter
#. odoo-python
#: code:addons/ai_oca_bridge_chatter/models/ai_bridge.py:0
#: code:addons/ai_oca_bridge_chatter/models/ai_bridge.py
#, python-format
msgid "The record must be a mail.message instance."
msgstr "Zapis mora biti instanca mail.message."