For res.company the constraint is made of 2 parts:
- one normal unique constraint (name,company_id) to catch
most cases and define the user error message
- one additional unique index to enforce the unique currency
name even for multiple entries with NULL company_id, not
caught by the constraint. The index is named with the
constraint name as prefix, in order to automatically
share the user error message
Also, cleanup up the res.currency views a bit, and improved
field labels in ir.model to make them easier to understand.
lp bug: https://launchpad.net/bugs/789019 fixed
bzr revid: odo@openerp.com-20110919144821-708avl7t9q7g8vpr
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies
bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso