Merge lp:~julie-w/unifield-server/US-9089 into lp:unifield-server

Proposed by jftempo
Status: Needs review
Proposed branch: lp:~julie-w/unifield-server/US-9089
Merge into: lp:unifield-server
Diff against target: 24 lines (+4/-3)
1 file modified
bin/addons/analytic_distribution/account_commitment.py (+4/-3)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-9089
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+409196@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/analytic_distribution/account_commitment.py'
2--- bin/addons/analytic_distribution/account_commitment.py 2021-08-17 13:24:42 +0000
3+++ bin/addons/analytic_distribution/account_commitment.py 2021-09-27 10:27:15 +0000
4@@ -86,8 +86,9 @@
5
6 def _display_super_done_button(self, cr, uid, ids, name, arg, context=None):
7 """
8- For now the "Super" Done button, which allows to always set a CV to Done whatever its state and origin,
9- is visible only by the Admin user. It is displayed only when the standard Done button isn't usable.
10+ The "Super" Done button, which allows to always set a CV to Done whatever its state and origin, is displayed:
11+ - when the standard Done button isn't usable.
12+ - only for some "admin" users (the restriction is made by User Rights).
13 """
14 if context is None:
15 context = {}
16@@ -96,7 +97,7 @@
17 res = {}
18 for cv in self.read(cr, uid, ids, ['state', 'type'], context=context):
19 other_done_button_usable = cv['state'] == 'open' and cv['type'] not in ('external', 'intermission', 'intersection')
20- res[cv['id']] = not other_done_button_usable and uid == 1 and cv['state'] != 'done'
21+ res[cv['id']] = not other_done_button_usable and cv['state'] != 'done'
22 return res
23
24 _columns = {

Subscribers

People subscribed via source and target branches