'Version actions' => 'Aktionen für Versionen',
'Version number' => 'Versionsnummer',
'Versions' => 'Versionen',
+ 'View RFQs' => 'Lieferantenanfragen ansehen',
'View SEPA export' => 'SEPA-Export-Details ansehen',
'View background job execution result' => 'Verlauf der Hintergrund-Job-Ausführungen anzeigen',
+ 'View purchase delivery orders' => 'Einkaufslieferscheine ansehen',
+ 'View purchase invoices' => 'Einkaufsrechungen ansehen',
+ 'View purchase orders' => 'Lieferantenaufträge ansehen',
'View record links from Sales Order' => 'Verknüpfte Belege immer vom Verkaufsauftrag ansehen',
+ 'View sales delivery orders' => 'Verkaufslieferscheine ansehen',
+ 'View sales invoices and credit notes' => 'Rechnungen und Gutschriften ansehen',
+ 'View sales orders' => 'Auftragsbestätigungen ansehen',
+ 'View sales quotations' => 'Angebote ansehen',
'View sent email' => 'Verschickte E-Mail anzeigen',
'View warehouse content' => 'Lagerbestand ansehen',
'View/edit all employees purchase documents' => 'Bearbeiten/ansehen der Einkaufsdokumente aller Mitarbeiter',
'Version actions' => '',
'Version number' => '',
'Versions' => '',
+ 'View RFQs' => '',
'View SEPA export' => '',
'View background job execution result' => '',
+ 'View purchase delivery orders' => '',
+ 'View purchase invoices' => '',
+ 'View purchase orders' => '',
'View record links from Sales Order' => '',
+ 'View sales delivery orders' => '',
+ 'View sales invoices and credit notes' => '',
+ 'View sales orders' => '',
+ 'View sales quotations' => '',
'View sent email' => '',
'View warehouse content' => '',
'View/edit all employees purchase documents' => '',
--- /dev/null
+-- @tag: rights_view_docs
+-- @description: Rechte zum Lesen von Belegen
+-- @depends: release_3_6_0
+-- @locales: View sales quotations
+-- @locales: View sales orders
+-- @locales: View sales delivery orders
+-- @locales: View sales invoices and credit notes
+-- @locales: View RFQs
+-- @locales: View purchase orders
+-- @locales: View purchase delivery orders
+-- @locales: View purchase invoices
+
+INSERT INTO auth.master_rights (position, name, description, category)
+ VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'sales_quotation_edit'),
+ 'sales_quotation_view',
+ 'View sales quotations',
+ FALSE);
+
+INSERT INTO auth.master_rights (position, name, description, category)
+ VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'sales_order_edit'),
+ 'sales_order_view',
+ 'View sales orders',
+ FALSE);
+
+INSERT INTO auth.master_rights (position, name, description, category)
+ VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'sales_delivery_order_edit'),
+ 'sales_delivery_order_view',
+ 'View sales delivery orders',
+ FALSE);
+
+INSERT INTO auth.master_rights (position, name, description, category)
+ VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'invoice_edit'),
+ 'sales_invoice_view',
+ 'View sales invoices and credit notes',
+ FALSE);
+
+INSERT INTO auth.master_rights (position, name, description, category)
+ VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'request_quotation_edit'),
+ 'request_quotation_view',
+ 'View RFQs',
+ FALSE);
+
+INSERT INTO auth.master_rights (position, name, description, category)
+ VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'purchase_order_edit'),
+ 'purchase_order_view',
+ 'View purchase orders',
+ FALSE);
+
+INSERT INTO auth.master_rights (position, name, description, category)
+ VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'purchase_delivery_order_edit'),
+ 'purchase_delivery_order_view',
+ 'View purchase delivery orders',
+ FALSE);
+
+INSERT INTO auth.master_rights (position, name, description, category)
+ VALUES ((SELECT position + 10 FROM auth.master_rights WHERE name = 'vendor_invoice_edit'),
+ 'purchase_invoice_view',
+ 'View purchase invoices',
+ FALSE);
+
+
+INSERT INTO auth.group_rights (group_id, "right", granted)
+ SELECT (SELECT id FROM auth.group WHERE name = 'Vollzugriff'), 'sales_quotation_view', true UNION
+ SELECT (SELECT id FROM auth.group WHERE name = 'Vollzugriff'), 'sales_order_view', true UNION
+ SELECT (SELECT id FROM auth.group WHERE name = 'Vollzugriff'), 'sales_delivery_order_view', true UNION
+ SELECT (SELECT id FROM auth.group WHERE name = 'Vollzugriff'), 'sales_invoice_view', true UNION
+ SELECT (SELECT id FROM auth.group WHERE name = 'Vollzugriff'), 'request_quotation_view', true UNION
+ SELECT (SELECT id FROM auth.group WHERE name = 'Vollzugriff'), 'purchase_order_view', true UNION
+ SELECT (SELECT id FROM auth.group WHERE name = 'Vollzugriff'), 'purchase_delivery_order_view', true UNION
+ SELECT (SELECT id FROM auth.group WHERE name = 'Vollzugriff'), 'purchase_invoice_view', true;