Commit 5b5acb1c authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_accounting: Allow Assignor manage Accounting Periods

   Fix inconsistency on guard and permissions

   Fixup the inconsistent restart/restart_action transition, that has
     Assignee/Assignor guard in am inconsistent matter.

   Allow assignor have the same permissions and guard than the assignee

   Fix up permissions on delivered state, where the Assignor had no
   permission to view/access accounting period (so deliver by assignor
   only was impossible).
parent 69ae67e5
Pipeline #36871 failed with stage
in 0 seconds
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
<string>Associate</string> <string>Associate</string>
<string>Auditor</string> <string>Auditor</string>
<string>Manager</string> <string>Manager</string>
...@@ -121,6 +122,7 @@ ...@@ -121,6 +122,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
<string>Associate</string> <string>Associate</string>
<string>Auditor</string> <string>Auditor</string>
<string>Manager</string> <string>Manager</string>
......
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
<string>Manager</string> <string>Manager</string>
</tuple> </tuple>
</value> </value>
...@@ -121,6 +122,7 @@ ...@@ -121,6 +122,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
<string>Manager</string> <string>Manager</string>
</tuple> </tuple>
</value> </value>
......
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
<string>Manager</string> <string>Manager</string>
</tuple> </tuple>
</value> </value>
...@@ -118,6 +119,7 @@ ...@@ -118,6 +119,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
<string>Manager</string> <string>Manager</string>
</tuple> </tuple>
</value> </value>
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Owner</string> <string>Owner</string>
<string>Assignor</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Restarts the accounting period in order to input transactions.\r\n <value> <string>Restarts the accounting period in order to input transactions.\n
This removes existing balance transactions.</string> </value> This removes existing balance transactions.</string> </value>
</item> </item>
<item> <item>
...@@ -49,6 +49,7 @@ This removes existing balance transactions.</string> </value> ...@@ -49,6 +49,7 @@ This removes existing balance transactions.</string> </value>
<key> <string>guard_role</string> </key> <key> <string>guard_role</string> </key>
<value> <value>
<tuple> <tuple>
<string>Assignor</string>
<string>Assignee</string> <string>Assignee</string>
</tuple> </tuple>
</value> </value>
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignor</string> <string>Assignor</string>
<string>Assignee</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -48,7 +48,10 @@ ...@@ -48,7 +48,10 @@
<item> <item>
<key> <string>guard_role</string> </key> <key> <string>guard_role</string> </key>
<value> <value>
<tuple/> <tuple>
<string>Assignee</string>
<string>Assignor</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment