Commit Graph

20 Commits

Author SHA1 Message Date
Olivier Dony 2ad705317c [MERGE] merged latest trunk
bzr revid: odo@openerp.com-20110408203540-amjsn89g4drl8ojk
2011-04-08 22:35:40 +02:00
Olivier Dony 8ab9bac2b1 [IMP] ir.rule: added util methods for working with domain literals
bzr revid: odo@openerp.com-20110408140241-jotm4lsr1savrr3a
2011-04-08 16:02:41 +02:00
Olivier Dony cd914e0d42 [MERGE] from trunk
bzr revid: odo@openerp.com-20110401125400-39nk9gayvlseh1jc
2011-04-01 14:54:00 +02:00
Olivier Dony 11e1097c61 [FIX] ir.actions: fixed and documented a bit the function field computing views for actions
The previous implementation had numerous flaws and edge cases where it would
not have any useful result. The new implementation is backwards compatible
with the valid combinations of view_id, view_modes and view_id.
A unique constraint was also added to make sure that it is not possible to
specify multiple views of the same type for the same action. This was never
used, but should be prevented completely so that clients can rely on this
fact. Also a little bit of documentation was added to explain what the field
is doing.

bzr revid: odo@openerp.com-20110401124852-r0i6cclc80acoegj
2011-04-01 14:48:52 +02:00
Raphael Collet edaae88606 add a page with submenus in edit_menu_access form
bzr revid: rco@openerp.com-20110330153321-bstnetdx7cg7q6ii
2011-03-30 17:33:21 +02:00
Vo Minh Thu a0c1363fd6 [MERGE] merged 6.0.
bzr revid: vmt@openerp.com-20110406104718-cdcyq74rltf102sa
2011-04-06 12:47:18 +02:00
Olivier Dony ac154f2a92 [MERGE] merged latest trunk
bzr revid: odo@openerp.com-20110329114055-3q35xcpq1ndm2bhg
2011-03-29 13:40:55 +02:00
Olivier Dony c39f1cca46 [FIX] orm,ir.model: add eval of domain for relationship fields
Without this, it has become impossible to add one2many fields
as custom fields, because the domain string is not evaluated

bzr revid: odo@openerp.com-20110329113824-5ca5bvp1awzies5u
2011-03-29 13:38:24 +02:00
Olivier Dony 444df6affa [FIX] ir.rule,expression: domain expressions must be normalized before they can be safely combined
This adds a normalize_domain() method to osv.expression, which ir.rule calls
before combining expressions due to multiple rules or groups being applicable
to a certain user.
YAML tests are also added with a trivial unit test of normalize_domain() and
some additional tests for ir_rule in order to verify that unnormalized domains
are properly normalized before being combined by ir.rule.

bzr revid: odo@openerp.com-20110324111757-uwuoqvm3lxkipr08
2011-03-24 12:17:57 +01:00
Olivier Dony 6a46a15185 [IMP] ir.model.access: split method for generating the list of groups that have a given access right
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
2011-03-24 12:14:27 +01:00
Vo Minh Thu 7766fcca62 [REF] renamed openerp-server.py to openerp-server.
bzr revid: vmt@openerp.com-20110324095012-a5joofz60zrhbit5
2011-03-24 10:50:12 +01:00
Vo Minh Thu d02ffafe30 [MERGE] merged the 6.0 branch.
bzr revid: vmt@openerp.com-20110322140841-6lt7ky1ohxbrgx68
2011-03-22 15:08:41 +01:00
Vo Minh Thu dd1943c45e [MERGE] merge 6.0 branch.
bzr revid: vmt@openerp.com-20110303133011-758wfx7zompu5ugq
2011-03-03 14:30:11 +01:00
Vo Minh Thu b7740b4f84 [FIX] act_window access: corrected the access for normal users to read-only.
lp bug: https://launchpad.net/bugs/720277 fixed

bzr revid: vmt@openerp.com-20110223145335-d39xu9nyasz8gi2o
2011-02-23 15:53:35 +01:00
Olivier Dony 2621b707e0 [MERGE] merged latest fixes from 6.0 branch up to rev 3348
Rev 3348 is odo@openerp.com-20110221101549-vp0ha2g91yl30cmk.

bzr revid: odo@openerp.com-20110221103235-6tdy5tpb6zvkbzs3
2011-02-21 11:32:35 +01:00
Olivier Dony cfc6d831df [MERGE] merged latest 6.0 fixes up to rev 3339
Revision 3339 = odo@openerp.com-20110208140924-0bgxqgt1oyrxwz3z

bzr revid: odo@openerp.com-20110208164923-u7mzknc0b3avb9i0
2011-02-08 17:49:23 +01:00
Vo Minh Thu 6713d57ab1 [MERGE] merge of the openerp python module branch.
bzr revid: vmt@openerp.com-20110208150149-x4vu09aj42ezma5a
2011-02-08 16:01:49 +01:00
Vo Minh Thu 3613935c53 [FIX] addons.__init__: make sure ad_paths is initialized before using it.
bzr revid: vmt@openerp.com-20110208132719-qhlqqjkcyg3j9hv8
2011-02-08 14:27:19 +01:00
Vo Minh Thu 45239ae493 [IMP] openerp.__init__ can imports all its submodules.
- The config parser is given sys.args explicitely
- addons.__init__ changed so it can be imported in openerp.__init__

bzr revid: vmt@openerp.com-20110208092923-42mj8sb8mkfbiytw
2011-02-08 10:29:23 +01:00
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- 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
2011-02-07 13:57:23 +01:00