Commit Graph

1149 Commits

Author SHA1 Message Date
Olivier Dony e10e8073db [IMP] ir.rule,expression: merged improved rule computation mechanism, suggested by RCO
bzr revid: odo@openerp.com-20110531144318-vut0opufvqd5mu07
2011-05-31 16:43:18 +02:00
Olivier Dony bae7ef7732 [MERGE] merged with latest trunk
bzr revid: odo@openerp.com-20110531132023-or3mm8ccgbh8qmwa
2011-05-31 15:20:23 +02:00
Olivier Dony 89e66c498d [MERGE] merged latest trunk
bzr revid: odo@openerp.com-20110531103720-mas6phcnb22qj4p2
2011-05-31 12:37:20 +02:00
Olivier Dony f6f4618fb0 [IMP] orm: minor typo and improvement in handling of ir.model.data during unlink()
bzr revid: odo@openerp.com-20110531092232-pyt85iw2q7bf6qp1
2011-05-31 11:22:32 +02:00
Vo Minh Thu 554b33978a [IMP] osv: removed unnecessary module arg, added comments.
bzr revid: vmt@openerp.com-20110527123236-tvd4jgco8iigmrxh
2011-05-27 14:32:36 +02:00
Vo Minh Thu ee58f9da5f [FIX] osv_pool: it appears it is necessary to have the model in the pool earlier on.
bzr revid: vmt@openerp.com-20110527100310-qw9760rd8spiwjgm
2011-05-27 12:03:10 +02:00
Vo Minh Thu a87ebe9600 [REF] osv:
- make it more explcicit in osv_pool that afreshly instanciated object is added to the pool
- osv_pool.init_set() is called just once with False, so
  no need to check if it is the first time it is called or
  if is called with True
- and rename it in do_parent_store as it is what it does.

bzr revid: vmt@openerp.com-20110526210532-a8i91shptz5h4k48
2011-05-26 23:05:32 +02:00
Vo Minh Thu 131def0f9e [REF] osv: osv classes merged inside orm classes.
- osv_base removed
- osv_memory and osv are synonyms for orm_memory and orm.

bzr revid: vmt@openerp.com-20110526182445-po5xqt7sjcmzompl
2011-05-26 20:24:45 +02:00
Naresh (OpenERP) fe474b6d45 [FIX,REF]:does not support hierarchy:M2O,O2M,M2M also refactored the code
bzr revid: nch@tinyerp.com-20110526092853-h9x0z5qnc73n1qc6
2011-05-26 14:58:53 +05:30
Vo Minh Thu a2087303c8 [REF] osv: factored out duplicated createInstance methods.
bzr revid: vmt@openerp.com-20110525221907-48dgtocw3wsnakow
2011-05-26 00:19:07 +02:00
Vo Minh Thu 2f6dff7690 [MERGE] moved around some code (preparing for some refactoring) (large diff).
bzr revid: vmt@openerp.com-20110525160607-45pq13910rduijkk
2011-05-25 18:06:07 +02:00
Vo Minh Thu 959ff88d64 [MERGE] orm: correctly store in db the translate flag.
bzr revid: vmt@openerp.com-20110525154411-c6eg6mpo31yseldi
2011-05-25 17:44:11 +02:00
Vo Minh Thu 823abab958 [MERGE] merged changes from 6.0
bzr revid: vmt@openerp.com-20110525151149-78gkoolppmjekrl6
2011-05-25 17:11:49 +02:00
Vo Minh Thu 3286ef93b8 [IMP] orm: added an assert on the return value of function fields.
bzr revid: vmt@openerp.com-20110524101810-fdrj5hqxrc9c6856
2011-05-24 12:18:10 +02:00
Vo Minh Thu 30dd902e01 [MERGE] orm: at csv import, properly report lines with less columns.
bzr revid: vmt@openerp.com-20110523143929-1k23u8oqzvmirqw1
2011-05-23 16:39:29 +02:00
Vo Minh Thu 4f2d05e968 [FIX] orm: correctly store in db the translate flag:
- added the "translate" column to ir_model_fields in base.sql
- modified orm.py to correctly set that column
- this is based on a patch by xrg.

lp bug: https://launchpad.net/bugs/780584 fixed

bzr revid: vmt@openerp.com-20110523132153-njovr5ynt66k8d81
2011-05-23 15:21:53 +02:00
Vo Minh Thu 00fc2c908f [MERGE] res.user: fix the call to create_user:
Corrected the dictionary values passed to res_users.create()
from tuples (id,name) to ids and from list of ids to tuples
(6,0,ids) (accounting for the discrepancy between read/write
values).
Added a call to that mathod from a yml test.

bzr revid: vmt@openerp.com-20110523111953-umzk6kow40wxh607
2011-05-23 13:19:53 +02:00
Yogesh (OpenERP) 1fc19ec86c [FIX] fields.function work in multi mode for binary type. return field name with size on multi mode in get_nice_size method.
bzr revid: ysa@tinyerp.com-20110523090113-tryh2f1c760sf8er
2011-05-23 14:31:13 +05:30
Vo Minh Thu 87220e0dd1 [MERGE] orm/import: proper unicode comparison.
lp bug: https://launchpad.net/bugs/779727 fixed

bzr revid: vmt@openerp.com-20110523082023-mnlh3rf6tprh5xyz
2011-05-23 10:20:23 +02:00
Yogesh (OpenERP) 52442656f9 [FIX] fix import error message translation problem used tools.ustr() in error message.
bzr revid: ysa@tinyerp.com-20110520114221-u7uz2dzmaze532d4
2011-05-20 17:12:21 +05:30
Naresh (OpenERP) 58f5dfe47c [FIX]:filtering does not support hierarchy
lp bug: https://launchpad.net/bugs/740799 fixed

bzr revid: nch@tinyerp.com-20110518124150-otgbcv1lw2bqakro
2011-05-18 18:11:50 +05:30
Vo Minh Thu a931e398bf [REF] consistent, grepable ir.values object naming.
bzr revid: vmt@openerp.com-20110516150534-2524fn6587jir72m
2011-05-16 17:05:34 +02:00
Vo Minh Thu 6a3342acfb [MERGE] orm: pass the context around.
lp bug: https://launchpad.net/bugs/704696 fixed

bzr revid: vmt@openerp.com-20110512125239-b2s0etg1yrjoa970
2011-05-12 14:52:39 +02:00
Vo Minh Thu 4ba3f3c804 [REF] osv, modules/__init__cosmetic renaming, added comments.
bzr revid: vmt@openerp.com-20110519090300-bodss011798ep5cy
2011-05-19 11:03:00 +02:00
Xavier Morel 13b326dff8 [IMP] fix wording of read_group documentation
bzr revid: xmo@openerp.com-20110509092127-11acwi6oieuk0uzs
2011-05-09 11:21:27 +02:00
Vo Minh Thu 0770057935 [REF] explicit service objects instanciation.
bzr revid: vmt@openerp.com-20110507112129-hfrly9easfby9hns
2011-05-07 13:21:29 +02:00
AVP(Axelor) fb7a13668c [REF] code improvement
bzr revid: amp@tinyerp.com-20110429085145-ybql99jhrk5fdxqf
2011-04-29 14:21:45 +05:30
Olivier Dony a1fe08562d [MERGE] merge latest trunk
bzr revid: odo@openerp.com-20110411103548-wkbr5o0odxudi934
bzr revid: odo@openerp.com-20110428161159-g0cu3rhijlq9ummy
2011-04-28 18:11:59 +02:00
Vo Minh Thu c5b8487c97 [MERGE] merged fix for default search view.
bzr revid: vmt@openerp.com-20110426105426-ybsahbulj84gbwfg
2011-04-26 12:54:26 +02:00
Naresh (OpenERP) ddfac1ecf7 [IMP]:optimization
lp bug: https://launchpad.net/bugs/722766 fixed

bzr revid: nch@tinyerp.com-20110421120443-d30x5z0u1wciut42
2011-04-21 17:34:43 +05:30
Naresh (OpenERP) dc6973b41e [FIX]:help defined in xml view was not considered for translation eg:on button
lp bug: https://launchpad.net/bugs/705597 fixed

bzr revid: nch@tinyerp.com-20110420131346-n5jfy76efdgnztqr
2011-04-20 18:43:46 +05:30
Vo Minh Thu 4b3357652d [REF] osv_pool cleaning:
- removed unused variables (module_list, module_object_list, created)
  - removed unecessary call to del on a dictionary
  (as its element is replaced anyway)
  - added some comments

bzr revid: vmt@openerp.com-20110519085035-p9ohve0nfkudgrx5
2011-05-19 10:50:35 +02:00
Vo Minh Thu 4f163f727a [IMP] orm: check for object _name validity.
bzr revid: vmt@openerp.com-20110427090846-pxqkyk2y0p8sjb8v
2011-04-27 11:08:46 +02:00
Vo Minh Thu 0e1186dd3d [REF] openerp.pooler/openerp.sql_db: cleaner dependencies:
- openerp.pooler no longer provides get_db_only, which is a provided by sql_db
- openerp.sql_db does not rely anymore on netsvc, which is goog as it was
making a circular import. The downside is that db_close callers have to clean
also the Agent themselves.

bzr revid: vmt@openerp.com-20110420141407-au0oanwjc0t15vy5
2011-04-20 16:14:07 +02:00
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