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

@ -15,21 +15,21 @@ msgstr ""
#. module: hr_timesheet_report
#. odoo-python
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py:0
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py
#, python-format
msgid "\"%(report_name)s\" report with \"%(report_type)s\" type not found"
msgstr "\"%s\" izvještaj sa \"%s\" tipom nije pronađen"
#. module: hr_timesheet_report
#. odoo-python
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py:0
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py
#, python-format
msgid "\"%s\" report type is not supported"
msgstr "\"%s\" tip izvještaja nije podržan"
#. module: hr_timesheet_report
#. odoo-python
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py:0
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py
#, python-format
msgid "%s not set"
msgstr "%s nije postavljeno"
@ -51,15 +51,11 @@ msgstr "<strong>Podukupno</strong>"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__line_ids
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__any_line_id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__line_ids
msgid "Account Analytics Lines"
msgstr "Linije analitike računa"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field__aggregation
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__aggregation
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__aggregation
msgid "Aggregation"
msgstr "Agregacija"
@ -70,14 +66,14 @@ msgstr "Analitička stavka"
#. module: hr_timesheet_report
#. odoo-python
#: code:addons/hr_timesheet_report/wizards/hr_timesheet_report_wizard.py:0
#: code:addons/hr_timesheet_report/wizards/hr_timesheet_report_wizard.py
#, python-format
msgid "At least one Details field must be specified!"
msgstr "Najmanje jedno polje Detalja mora biti specificirano!"
#. module: hr_timesheet_report
#. odoo-python
#: code:addons/hr_timesheet_report/wizards/hr_timesheet_report_wizard.py:0
#: code:addons/hr_timesheet_report/wizards/hr_timesheet_report_wizard.py
#, python-format
msgid "At least one field must be listed in Details Fields"
msgstr "Najmanje jedno polje mora biti navedeno u poljima Detalji"
@ -94,31 +90,16 @@ msgstr "Klase ćelije"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__create_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__create_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__create_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__create_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__create_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__create_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__create_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__create_uid
msgid "Created by"
msgstr "Kreirao"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__create_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__create_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__create_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__create_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__create_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__create_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__create_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__create_date
msgid "Created on"
msgstr "Kreirano"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__department_ids
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__department_ids
msgid "Departments"
msgstr "Odjeljenja"
@ -134,19 +115,11 @@ msgstr "Polja detalja"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__display_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__display_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__display_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__display_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__display_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__display_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__display_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__display_name
msgid "Display Name"
msgstr "Prikazani naziv"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__employee_category_ids
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__employee_category_ids
msgid "Employee Tags"
msgstr "Oznake zaposlenih"
@ -157,7 +130,6 @@ msgstr "Oznake zaposlenika:"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__employee_ids
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__employee_ids
msgid "Employees"
msgstr "Zaposleni"
@ -168,7 +140,6 @@ msgstr "Zaposlenici:"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__date_to
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__date_to
msgid "End Date"
msgstr "Datum završetka"
@ -194,42 +165,31 @@ msgstr "Izvezi u XLSX"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field__field_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__field_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__field_name
msgid "Field"
msgstr "Polje"
#. module: hr_timesheet_report
#: model:ir.model.constraint,message:hr_timesheet_report.constraint_hr_timesheet_report_field_entry_field_name_uniq
#: model:ir.model.constraint,message:hr_timesheet_report.constraint_hr_timesheet_report_field_field_name_uniq
#: model:ir.model.constraint,message:hr_timesheet_report.constraint_hr_timesheet_report_field_groupby_field_name_uniq
msgid "Field can be reported only once!"
msgstr "Polje može biti izvještano samo jednom!"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field__field_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__field_name
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__field_name
msgid "Field name"
msgstr "Naziv polja"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field__field_title
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__field_title
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__field_title
msgid "Field title"
msgstr "Naslov polja"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field__field_type
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__field_type
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__field_type
msgid "Field type"
msgstr "Tip polja"
#. module: hr_timesheet_report
#: model:ir.actions.act_window,name:hr_timesheet_report.action_timesheet_report_wizard
#: model:ir.actions.server,name:hr_timesheet_report.action_timesheet_report_wizard_from_selection
msgid "Generate Timesheet Report"
msgstr "Generiraj izvještaj radnih listova"
@ -245,8 +205,6 @@ msgstr "Polja grupiranja"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field__groupby
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__groupby
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__groupby
msgid "Group-by expression"
msgstr "Izraz grupiranja"
@ -317,49 +275,21 @@ msgstr "Ima linije (tehničko)"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__id
msgid "ID"
msgstr "ID"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report____last_update
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry____last_update
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry____last_update
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby____last_update
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group____last_update
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard____last_update
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details____last_update
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping____last_update
msgid "Last Modified on"
msgstr "Zadnje mijenjano"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__write_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__write_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__write_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__write_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__write_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__write_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__write_uid
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__write_uid
msgid "Last Updated by"
msgstr "Zadnji ažurirao"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__write_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__write_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__write_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__write_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__write_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__write_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__write_date
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__write_date
msgid "Last Updated on"
msgstr "Zadnje ažurirano"
@ -370,7 +300,6 @@ msgstr "Naziv:"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__project_ids
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__project_ids
msgid "Projects"
msgstr "Projekti"
@ -381,46 +310,33 @@ msgstr "Projekti:"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field__report_id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__report_id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__report_id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__report_id
msgid "Report"
msgstr "Izvještaj"
#. module: hr_timesheet_report
#. odoo-python
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py:0
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py
#, python-format
msgid "Report %s"
msgstr "Izvještaj %s"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__scope
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__scope
msgid "Scope"
msgstr "Opseg"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__sequence
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field__sequence
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_entry__sequence
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_field_groupby__sequence
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__sequence
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field__sequence
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__sequence
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__sequence
msgid "Sequence"
msgstr "Sekvenca"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__date_from
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__date_from
msgid "Start Date"
msgstr "Početni datum"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__task_ids
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__task_ids
msgid "Tasks"
msgstr "Zadaci"
@ -431,15 +347,11 @@ msgstr "Zadaci:"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__time_format
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard__time_format
msgid "Time format"
msgstr "Format vremena"
#. module: hr_timesheet_report
#: model:ir.actions.report,name:hr_timesheet_report.action_report_qweb_html
#: model:ir.actions.report,name:hr_timesheet_report.action_report_qweb_pdf
#: model:ir.actions.report,name:hr_timesheet_report.action_report_xlsx
#: model:ir.model,name:hr_timesheet_report.model_report_hr_timesheet_report_report
msgid "Timesheet Report"
msgstr "Izvještaj radnih listova"
@ -450,30 +362,23 @@ msgstr "Čarobnjak izvještaja radnih listova"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field__field_title
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__field_title
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__field_title
msgid "Title"
msgstr "Naslov"
#. module: hr_timesheet_report
#. odoo-python
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py:0
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py:0
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py
#, python-format
msgid "Total"
msgstr "Ukupno"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report__total_unit_amount
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_entry__total_unit_amount
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_group__total_unit_amount
msgid "Total Quantity"
msgstr "Ukupna količina"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field__field_type
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__field_type
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__field_type
msgid "Type"
msgstr "Tip"
@ -484,8 +389,6 @@ msgstr "Pregled"
#. module: hr_timesheet_report
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field__wizard_id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_details__wizard_id
#: model:ir.model.fields,field_description:hr_timesheet_report.field_hr_timesheet_report_wizard_field_grouping__wizard_id
msgid "Wizard"
msgstr "ID čarobnjaka"
@ -511,7 +414,7 @@ msgstr "do"
#. module: hr_timesheet_report
#. odoo-python
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py:0
#: code:addons/hr_timesheet_report/report/hr_timesheet_report.py
#, python-format
msgid "{l} » {r}"
msgstr "{l} » {r}"