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:30 +01:00
parent 97fc2350c7
commit b0e7ae9893
6 changed files with 1044 additions and 531 deletions

View file

@ -17,7 +17,7 @@ msgstr ""
#. module: crm_livechat
#. odoo-python
#: code:addons/crm_livechat/models/chatbot_script_step.py:0
#: code:addons/crm_livechat/models/chatbot_script_step.py
#, python-format
msgid "%s's New Lead"
msgstr "%s novi potencijalni klijent"
@ -37,22 +37,23 @@ msgstr "Korak chatbot skripte"
msgid "Create Lead"
msgstr "Kreiraj potencijalnog klijenta"
# taken from hr.po
#. module: crm_livechat
#. odoo-javascript
#. odoo-python
#: code:addons/crm_livechat/models/mail_channel.py:0
#: code:addons/crm_livechat/static/src/models/messaging_initializer.js:0
#: code:addons/crm_livechat/models/mail_channel.py
#, python-format
msgid "Create a new lead (/lead lead title)"
msgstr "Kreiraj novi potencijal (potencijal/naslov potencijala)"
#. module: crm_livechat
#. odoo-python
#: code:addons/crm_livechat/models/mail_channel.py:0
#: code:addons/crm_livechat/models/mail_channel.py
#, python-format
msgid "Created a new lead: %s"
msgstr "Kreiran novi potencijalni klijent: %s"
# taken from hr.po
#. module: crm_livechat
#: model:ir.model,name:crm_livechat.model_mail_channel
msgid "Discussion Channel"
@ -78,11 +79,13 @@ msgstr "Hu-ho, izgleda da nijedan od naših operatera nije dostupan 😔"
msgid "Lead Generation Bot"
msgstr "Bot za generiranje potencijalnih klijenata"
# taken from hr.po
#. module: crm_livechat
#: model_terms:ir.ui.view,arch_db:crm_livechat.chatbot_script_view_form
msgid "Leads"
msgstr "Potencijali"
# taken from hr.po
#. module: crm_livechat
#: model:ir.model.fields,field_description:crm_livechat.field_chatbot_script_step__crm_team_id
msgid "Sales Team"
@ -104,9 +107,12 @@ msgid ""
"Used in combination with 'create_lead' step type in order to automatically "
"assign the created lead/opportunity to the defined team"
msgstr ""
"Koristi se u kombinaciji sa tipom koraka 'create_lead' da automatski "
"dodijeli kreirani potencijalni klijent/priliku definisanom timu"
#. module: crm_livechat
#: model:chatbot.script.step,message:crm_livechat.chatbot_script_welcome_step_pricing_email
msgid ""
"Would you mind leaving your email address so that we can reach you back?"
msgstr ""
"Biste li mogli ostaviti svoju e-mail adresu da vas možemo kontaktirati?"