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
Now all deletions in ir.model.data are automatically handled by ORM
during the regular call to orm.unlink(). No need for any manual care.
bzr revid: odo@openerp.com-20110531092426-ehvzf3dw6urqsdov
- the three functions provided in openerp.ir are simple wrappers around ir_values
- it is easier to directly use ir_values than to keep this module around.
bzr revid: vmt@openerp.com-20110519122752-s3wwq4pwl8wlbori
This is useful when modules later need to override it, for example when adding
hidden groups that should not be mentioned there (this is what the share module
does).
bzr revid: odo@openerp.com-20110324111427-puz4jtrem9ceibxf
- 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