Commit Graph

1165 Commits

Author SHA1 Message Date
Vo Minh Thu 0b42209314 [REF] osv.py: removed unused variable class_pool.
bzr revid: vmt@openerp.com-20110418134236-p5a1wikw10wtplvg
2011-04-18 15:42:36 +02:00
Olivier Dony f59ac0d6b1 [MERGE] merged latest fixes from 6.0 - up to rev 3399
bzr revid: odo@openerp.com-20110411101327-dxkwvwstjf9xc58s
2011-04-11 12:13:27 +02:00
Olivier Dony 2ad705317c [MERGE] merged latest trunk
bzr revid: odo@openerp.com-20110408203540-amjsn89g4drl8ojk
2011-04-08 22:35:40 +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
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
Olivier Dony ad2967d350 [MERGE] merged fix for osm_memory.read() of m2o fields with name - pending addons fix
bzr revid: odo@openerp.com-20110315132628-uhhpf95b9iyin482
2011-03-15 14:26:28 +01:00
Olivier Dony 95de9e8cb4 [IMP] orm.fields_view_get: allow passing a view_id from a different model for creative inheritance
There are cases where several objects would like to use a single view, but
by default they cannot because a view belongs to only one model.
With this change, it becomes possible to do inheritance "by copy", reusing
a view from another model without having to redefine it, just by specifying
its view_id in the relevant actions. If the original view needs to be modified,
it is also possible to explicitly inherit the parent view from the other
model, and the effect will be what is expected: the child view can be
specified in an action, and will be the result of the inheritance applied
on the parent view; but on the other hande the parent view itself is
unaffected when used in the context of its own model.

bzr revid: odo@openerp.com-20110221172757-qepq5osjqgd9uf8x
2011-02-21 18:27:57 +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 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