From 447a88006391d53545f15ff40dd9a9867e6c0d76 Mon Sep 17 00:00:00 2001 From: fegger Date: Sat, 12 Sep 2026 20:43:44 +0200 Subject: [PATCH] [IMP] l10n_at_hr_payroll: GP9 Company-Stammdaten-UI, Multi-Company-Record-Rules (AP9) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Company-Stammdaten-UI (views/company_views.xml): res.company-Formular-Inherit mit Reiter "Lohnverrechnung (AT)" — BKNR (10-stellig, Pflicht für alle Meldewesen-Läufe), Lohnsteuernummer (9-stellig), Bundesland (DZ-Satz), WKO-Mitglied (DZ-Pflicht), WF-Wien. Sichtbar nur mit hr_payroll.group_hr_payroll_user. Multi-Company-Record-Rules (security/security_rules.xml): ir.rule-Records für l10n.at.payroll.l16, .l16.line, .kind, .frist — jede:r Payroll-User sieht nur die Daten der Companies, auf die sie/er Zugriff hat (company_ids aus ir.rule-Standard-Mechanik; Muster: hr_payroll-Engine). 19.0.5.1.0. 100/100 grün (Wegwerf-DB). --- addons/l10n_at_hr_payroll/__manifest__.py | 4 +- .../security/security_rules.xml | 43 +++++++++++++++++++ .../views/company_views.xml | 38 ++++++++++++++++ 3 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 addons/l10n_at_hr_payroll/security/security_rules.xml create mode 100644 addons/l10n_at_hr_payroll/views/company_views.xml diff --git a/addons/l10n_at_hr_payroll/__manifest__.py b/addons/l10n_at_hr_payroll/__manifest__.py index bae0865..6564f2c 100644 --- a/addons/l10n_at_hr_payroll/__manifest__.py +++ b/addons/l10n_at_hr_payroll/__manifest__.py @@ -1,7 +1,7 @@ # Part of the odoo-at-payroll project. License: LGPL-3. { 'name': 'Österreich - Personalverrechnung Kern (AT Payroll Core)', - 'version': '19.0.5.0.0', + 'version': '19.0.5.1.0', 'author': 'ixsol', 'website': 'https://gem360.at', 'category': 'Human Resources/Payroll', @@ -68,12 +68,14 @@ Kein VRV-Bezug: die Gemeinde-Buchhaltung (Anlage 3b, Ansatz/MVAG) läuft 'depends': ['hr_payroll'], 'data': [ 'security/ir.model.access.csv', + 'security/security_rules.xml', 'data/rule_parameters_2026.xml', 'data/rule_parameters_lst_2026.xml', 'data/rule_parameters_sv_2026.xml', 'data/rule_parameters_2027.xml', 'data/tasy_mapping.xml', 'views/tasy_views.xml', + 'views/company_views.xml', 'views/meldewesen_views.xml', 'views/fristen_views.xml', 'report/belege_reports.xml', diff --git a/addons/l10n_at_hr_payroll/security/security_rules.xml b/addons/l10n_at_hr_payroll/security/security_rules.xml new file mode 100644 index 0000000..b5c01f7 --- /dev/null +++ b/addons/l10n_at_hr_payroll/security/security_rules.xml @@ -0,0 +1,43 @@ + + + + + + --> User sieht nur die Daten der Companies, auf die sie/er Zugriff + + + + + + L16: eigene Company + + [('company_id', 'in', company_ids)] + + + + L16-Zeile: eigene Company + + [('l16_id.company_id', 'in', company_ids)] + + + + + + Kind: eigene Company + + [('employee_id.company_id', 'in', company_ids)] + + + + + + Frist: eigene Company + + [('company_id', 'in', company_ids)] + + + \ No newline at end of file diff --git a/addons/l10n_at_hr_payroll/views/company_views.xml b/addons/l10n_at_hr_payroll/views/company_views.xml new file mode 100644 index 0000000..fa8a433 --- /dev/null +++ b/addons/l10n_at_hr_payroll/views/company_views.xml @@ -0,0 +1,38 @@ + + + + + + + + + + res.company.form.l10n.at + res.company + + + + + + + + + + + + + + + + + + + + +