• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OCA / server-tools / 1898
86%

Build:
DEFAULT BRANCH: 9.0
Ran 03 Jun 2016 11:43AM UTC
Jobs 2
Files 29
Run time 53s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1898

Pull #442

travis-ci

Yajo
[9.0][IMP][auth_supplier] Remove useless group. Mark as customer.

The whole purpose of this module was to be able to separate a customer and a supplier portals.

Given the status of the upstream implementations of portals, it is not possible to have a supplier portal without portal permissions. Thus, it would be required to make the group this module was creating inherit from `base.group_portal`, which would give suppliers access to all customers portal. As such, that group becomes useless.

From now on, this distinction should be made with simply checking if `user.customer` or `user.supplier` is `True`. This means no additional problems since `ir.rule` domains can use the `user` variable. To allow that, I'm implementing what was discussed at https://github.com/OCA/server-tools/pull/434#discussion-diff-64883758.

Tests had to be removed because https://github.com/odoo/odoo/issues/12237 makes the created record to disappear, so there's no way to actually check the created user was created with customer or supplier flag on.
Pull Request #442: [9.0][IMP][auth_supplier] Remove useless group. Mark as customer.

3 of 3 new or added lines in 1 file covered. (100.0%)

640 of 889 relevant lines covered (71.99%)

1.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
100.0
auth_supplier/controllers/main.py

Coverage Regressions

Lines Coverage ∆ File
1
100.0
auth_supplier/controllers/main.py
Jobs
ID Job ID Ran Files Coverage
3 1898.3 (TESTS="1" ODOO_REPO="odoo/odoo") 03 Jun 2016 11:44AM UTC 0
71.99
Travis Job 1898.3
4 1898.4 (TESTS="1" ODOO_REPO="OCA/OCB") 03 Jun 2016 11:43AM UTC 0
71.99
Travis Job 1898.4
Source Files on build 1898
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1898
  • Pull Request #442
  • PR Base - 9.0 (#1892)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc