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:26 +01:00
parent a8804cdf59
commit 8e05e720e1
27 changed files with 5268 additions and 3125 deletions

View file

@ -15,65 +15,86 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
# taken from hr.po
#. module: account_lock
#. odoo-python
#: code:addons/account_lock/models/res_company.py:0
#: code:addons/account_lock/models/res_company.py
#, python-format
msgid ""
"Any new All Users Lock Date must be posterior (or equal) to the previous "
"one."
msgstr ""
"Svaki noviji datum zaključavanja za sve korisnike mora biti nakon (ili "
"jednak) prethodnom."
# taken from hr.po
#. module: account_lock
#: model:ir.model,name:account_lock.model_res_company
msgid "Companies"
msgstr "Tvrtke"
# taken from hr.po
#. module: account_lock
#. odoo-python
#: code:addons/account_lock/models/res_company.py:0
#: code:addons/account_lock/models/res_company.py
#, python-format
msgid "The lock date for accountants is irreversible and can't be removed."
msgstr "Datum zaključavanja za računovođe je nepromjenjiv i nije ga moguće maknuti."
msgstr ""
"Datum zaključavanja za računovođe je nepromjenjiv i nije ga moguće maknuti."
# taken from hr.po
#. module: account_lock
#. odoo-python
#: code:addons/account_lock/models/res_company.py:0
#: code:addons/account_lock/models/res_company.py
#, python-format
msgid "The new tax lock date must be set after the previous lock date."
msgstr "Novi datum zaključavanja poreza mora biti nakon prethodno postavljenog."
msgstr ""
"Novi datum zaključavanja poreza mora biti nakon prethodno postavljenog."
# taken from hr.po
#. module: account_lock
#. odoo-python
#: code:addons/account_lock/models/res_company.py:0
#: code:addons/account_lock/models/res_company.py
#, python-format
msgid "The tax lock date is irreversible and can't be removed."
msgstr "Datum zaključavanja je ireverzibilan i nije ga moguće ukloniti."
# taken from hr.po
#. module: account_lock
#. odoo-python
#: code:addons/account_lock/models/res_company.py:0
#: code:addons/account_lock/models/res_company.py
#, python-format
msgid ""
"You cannot lock a period that has not yet ended. Therefore, the All Users "
"Lock Date must be anterior (or equal) to the last day of the previous month."
msgstr ""
"Nije moguće zaključati period koji još nije završio. Također, svi datumi "
"zaključavanja za korisnike moraju biti nakon (ili jednaki ) zadnjeg danu "
"prethodnog mjeseca."
# taken from hr.po
#. module: account_lock
#. odoo-python
#: code:addons/account_lock/models/res_company.py:0
#: code:addons/account_lock/models/res_company.py
#, python-format
msgid ""
"You cannot lock a period that has not yet ended. Therefore, the tax lock "
"date must be anterior (or equal) to the last day of the previous month."
msgstr ""
"Nije moguće zaključati period koji još nije završio. Također, svi datumi "
"zaključavanja za korisnike moraju biti nakon (ili jednaki ) zadnjeg danu "
"prethodnog mjeseca."
# taken from hr.po
#. module: account_lock
#. odoo-python
#: code:addons/account_lock/models/res_company.py:0
#: code:addons/account_lock/models/res_company.py
#, python-format
msgid ""
"You cannot set stricter restrictions on accountants than on users. "
"Therefore, the All Users Lock Date must be anterior (or equal) to the "
"Invoice/Bills Lock Date."
msgstr ""
"Nije moguće postaviti jača ograničenja na računovođe naspram običnog "
"korisnika. Zato, Datum zaključavanja za sve korisnike mora biti prije ili "
"jednak Datumu zaključavanja računa"