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:19 +01:00
parent 6308fcff4e
commit a2b6553e74
176 changed files with 3428 additions and 3278 deletions

View file

@ -13,73 +13,79 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
# taken from hr.po
#. module: account_invoice_change_currency
#: model_terms:ir.ui.view,arch_db:account_invoice_change_currency.view_move_form
msgid ""
"<i title=\"Update Currency: Will convert the amount lines to the new "
"currency set\" class=\"fa fa-fw fa-refresh\"/>"
msgstr ""
"<i title=\"Ažuriraj valutu: Mijenja iznose na stavkama prema novoj valuti\" "
"class=\"fa fa-fw fa-refresh\"/>"
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_bank_statement_line__is_original_currency
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_move__is_original_currency
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_payment__is_original_currency
msgid ""
"Check if current currency is the original currency. This is used to hide "
"custom rate field in the form view."
msgstr ""
"Provjerite da li je trenutna valuta originalna valuta. Ovo se koristi za "
"sakrivanje polja prilagođenog tečaja u form prikazu."
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model,name:account_invoice_change_currency.model_res_currency
msgid "Currency"
msgstr "Valuta"
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_bank_statement_line__custom_rate
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_move__custom_rate
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_payment__custom_rate
#: model_terms:ir.ui.view,arch_db:account_invoice_change_currency.view_move_form
msgid "Custom Rate"
msgstr "Prilagođeni tečaj"
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_bank_statement_line__is_original_currency
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_move__is_original_currency
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_payment__is_original_currency
msgid "Is Original Currency"
msgstr "Je originalna valuta"
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model,name:account_invoice_change_currency.model_account_move
msgid "Journal Entry"
msgstr "Stavka dnevnika"
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model,name:account_invoice_change_currency.model_account_move_line
msgid "Journal Item"
msgstr "Stavka dnevnika"
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_bank_statement_line__original_currency_id
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_move__original_currency_id
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_payment__original_currency_id
msgid "Original Currency"
msgstr "Originalna valuta"
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model.fields,field_description:account_invoice_change_currency.field_account_move_line__original_price_unit
msgid "Original Price Unit"
msgstr "Originalna jedinična cijena"
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_bank_statement_line__custom_rate
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_move__custom_rate
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_payment__custom_rate
msgid ""
"Set new currency rate to apply on the invoice.\n"
"This rate will be taken in order to convert amounts between the currency on the invoice and last currency"
msgstr ""
"Postavite novi tečaj koji želite primjeniti na računu.\n"
"Ovaj tečaj će se koristiti za konverziju između valute na računu i zadnje valute"
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_move_line__original_price_unit
msgid ""
@ -87,17 +93,21 @@ msgid ""
"conversion is called for the first time to use it to convert the amount in "
"the new currency."
msgstr ""
"Pohranite jediničnu cijenu iz svake stavke kada je račun kreiran ili se "
"konvertiranje dogodi prvi puta kada želimo pretvoriti iznos u novu valutu."
# taken from hr.po
#. module: account_invoice_change_currency
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_bank_statement_line__original_currency_id
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_move__original_currency_id
#: model:ir.model.fields,help:account_invoice_change_currency.field_account_payment__original_currency_id
msgid ""
"Store the original currency when the invoice is created or the conversion is"
" called for the first time. This is used to calculate conversion from this "
"currency."
msgstr ""
"Pohranite originalnu valutu kad je račun kreiran ili se konverzija dogodi "
"prvi puta. ovo se koristi za izračun konverzije iz ove valute."
# taken from hr.po
#. module: account_invoice_change_currency
#: model_terms:ir.ui.view,arch_db:account_invoice_change_currency.view_move_form
msgid "Update Currency"