[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.
Depending on the context where the record is created, it gets `resource` or `model_id`. The problem is that Odoo checks constrains before inverses, so constrains would fail always.
Test added to ensure future versions contemplate all use cases.
- Improve user instructions in README.
- Require some required fields.
- Allow to select models from a list.
- Allow to select up to 3 fields from dynamic lists.
- Improve translations.
- More tests.
- Translate column labels.
Some methods have been renamed, so version tag is raised to 8.0.2.0.0.
* [FIX] password_security: Fix password stored
* [REF] password_security: use a unified check_password private method to validate rules and history password
* [MIG][10.0] Migrate 'res_config_settings_enterprise_remove'
* [FIX] Use inherit to override 'res.config.settings'.
* [FIX] Remove upgrade_radio widget and group title
* [FIX] Improviments in code to remove upgrade fields
* [NEW] Remove enterprise upgrade from 'project config settings'
* [FIX] Add xpath to remove upgrade fields from 'General Settings'
* [ADD] user_threshold: Create module
* [IMP] user_threshold: Fixes per PR
* Fix README
* Rename poorly named methods
* Syntactic sugar
* Remove direct SQL in favor of ORM API
* Docstrings
* [IMP] user_threshold: Fixes per PR
* Update verbiage in README
* Simplify access check calls
* Use the same verbiage throughout error messages
* Add Link to related modules in README
* Slightly reword README
* Replace LasLabs logo with OCA one
* Overload _build_model in res.users model to add two MFA fields to the model
class's list of self-writeable fields, allowing these fields to be edited by
users without admin permissions for their own record
* Update view_users_form_simple_modif and the unit tests in the module based
on the self-writeable field change