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

OCA / server-tools / 2530
69%
9.0: 86%

Build:
Build:
LAST BUILD BRANCH: 13_add_base_changeset
DEFAULT BRANCH: 9.0
Ran 18 Oct 2016 10:56AM UTC
Jobs 2
Files 117
Run time 85min
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
2530

push

travis-ci

pedrobaeza
[8.0][FIX][base_export_manager] Fix "Expected singleton" bug. (#521)

[FIX][base_export_manager] Fix "Expected singleton" bug.

If you had a field that got translated in more than 1 addon, you'd possibly getto this error:

      File "/opt/odoo/0079_ahk_openerp/oca/base_export_manager/models/ir_exports_line.py", line 105, in _compute_label
        field.name)),
      File "/opt/odoo/common/openerp/v8/openerp/fields.py", line 825, in __get__
        record.ensure_one()
      File "/opt/odoo/common/openerp/v8/openerp/models.py", line 5355, in ensure_one
        raise except_orm("ValueError", "Expected singleton: %s" % self)
    except_orm: ('ValueError', 'Expected singleton: ir.translation(4899, 703976)')

With this patch, now we let Odoo return the translated string by using its
standard method to do so, so we have to care for less.

* Move installation outside a data file.

This makes the whole installation to be able to roll back if something goes
wrong, instead of entering an error loop.

* Include envorionment in its manager.

* Add 4th field

* Move to api.multi, refactoring some stuff.

- Add some comments in complex parts.
- Rename `onchange_name` to `_onchange_name` (guidelines).
- Make `_compute_name`'s try block shorter and easier to understand.

* Allow R/W of name directly in model.

* Update tests to cover new behaviors.

64 of 64 new or added lines in 2 files covered. (100.0%)

3051 of 4692 relevant lines covered (65.03%)

1.3 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
100.0
base_export_manager/models/ir_exports_line.py
Jobs
ID Job ID Ran Files Coverage
3 2530.3 (TESTS="1" ODOO_REPO="odoo/odoo") 18 Oct 2016 12:21PM UTC 0
65.03
Travis Job 2530.3
4 2530.4 (TESTS="1" ODOO_REPO="OCA/OCB") 18 Oct 2016 10:56AM UTC 0
65.0
Travis Job 2530.4
Source Files on build 2530
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2530
  • 76f291b8 on github
  • Prev Build on 8.0 (#2501)
  • Next Build on 8.0 (#2531)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc