Merge lp://qastaging/~acsone-openerp/web-addons/bug-1303944-sbi into lp://qastaging/~webaddons-core-editors/web-addons/7.0

Proposed by Stéphane Bidoul (Acsone)
Status: Merged
Merged at revision: 36
Proposed branch: lp://qastaging/~acsone-openerp/web-addons/bug-1303944-sbi
Merge into: lp://qastaging/~webaddons-core-editors/web-addons/7.0
Prerequisite: lp://qastaging/~acsone-openerp/web-addons/web_easy_switch_company-userform-fix-sbi
Diff against target: 53 lines (+24/-8)
1 file modified
web_easy_switch_company/static/src/js/switch_company.js (+24/-8)
To merge this branch: bzr merge lp://qastaging/~acsone-openerp/web-addons/bug-1303944-sbi
Reviewer Review Type Date Requested Status
Pedro Manuel Baeza code review and test Approve
arthru (community) tested Approve
Review via email: mp+216422@code.qastaging.launchpad.net

Description of the change

[FIX] web_easy_switch_company: propose the correct companies to non-admin users

Emulate the exact behaviour of the stock user preferences form.

To post a comment you must log in.
32. By Stéphane Bidoul (Acsone)

Added a comment about an issue with the logos

Revision history for this message
arthru (arthru) wrote :

Tested with admin and non admin users.

review: Approve (tested)
Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Note: logos do not display correctely, and, as far as I can tell, there is no way to make this work with the default record rule.

Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

LGTM.

Sorry for the late.

+++

review: Approve (code review, test)
Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

Hi Sylvain, thanks for the review.

What do you think about the logos. In practice they don't display properly with non admin users and I see no way out of that. Should we remove them?

-sbi

Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

Hi Stéphane,

I don't have a precise idea about that.
I'm pretty in favor to keep that feature because :
- it works for admin user and doesn't bug with non-admin users;
- It works if admin user decide to change default ACL;

I'm agree : it's not very clean. (but OpenERP Core is not very clean in that case...)

Other point of you ?

Regards.

Revision history for this message
Stéphane Bidoul (Acsone) (sbi) wrote :

I'm fine with your view. It does not crash indeed and users don't complain. So let's keep it that way for now.

Thanks again for this neat module!

-sbi

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

I have tried and it works good for admin and non admin users. It's a pity the logos issue, but module is very good even with that!

Regards

review: Approve (code review and test)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches