1 -- @tag: right_financial_controlling
2 -- @description: eigenes Recht für Finanz-Controlling-Bericht
3 -- @depends: release_3_9_0 add_master_rights master_rights_position_gaps
4 -- @locales: Show sales financial controlling
6 INSERT INTO auth.master_rights (position, name, description, category)
7 VALUES ((SELECT position - 40 FROM auth.master_rights WHERE name = 'delivery_plan'),
8 'sales_financial_controlling',
9 'Show sales financial controlling',
12 INSERT INTO auth.group_rights (group_id, "right", granted)
13 SELECT DISTINCT(id), 'sales_financial_controlling', TRUE
15 LEFT JOIN auth.group_rights ON (auth.group.id = auth.group_rights.group_id)
16 WHERE "right" LIKE 'sales_order_edit' AND granted IS TRUE;