Commit Graph

1165 Commits

Author SHA1 Message Date
Vo Minh Thu 7797702a9f [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110812130941-z2x2bjr310r4ynu8
2011-08-12 15:09:41 +02:00
Vo Minh Thu 5865633ffb [FIX] osv: forgot the "return" statement.
bzr revid: vmt@openerp.com-20110812130822-6q1qym3nww64zk4p
2011-08-12 15:08:22 +02:00
Vo Minh Thu ddd65ab5c1 [REF] osv: removed orm_memory, adapted the distinguished bits to osv_memory,
so yes, there are still two user-visible classes instead of a boolean flag.

bzr revid: vmt@openerp.com-20110812124128-43rr422swy6h2vs8
2011-08-12 14:41:28 +02:00
Vo Minh Thu 2f5e8d48b3 [REF] osv: moved (and adapted) vacuum code to osv_memory.
bzr revid: vmt@openerp.com-20110812113355-lylavdsc3mqjovrj
2011-08-12 13:33:55 +02:00
Antony Lesuisse 2f9f557e18 [FIX] get rid of unsued menus and submenu
bzr revid: al@openerp.com-20110811181217-y2yxdz34uswijwza
2011-08-11 20:12:17 +02:00
Vo Minh Thu 6251434cb9 [IMP] unaccent: support for the postgres unaccent contrib module.
OpenERP is now able to use the SQL unaccent() function when available,
and when the server is run with the --unaccent flag.

bzr revid: vmt@openerp.com-20110811110118-cyx2l6c3wk58083p
2011-08-11 13:01:18 +02:00
Vo Minh Thu d462db158e [REF] expression: comments, minor changes.
bzr revid: vmt@openerp.com-20110811093136-8whjybyvf3kf3t4y
2011-08-11 11:31:36 +02:00
Vo Minh Thu 5de1e1a367 [IMP] expression: some more tests pass with the correct semantic.
bzr revid: vmt@openerp.com-20110810143838-l5ujglk5w85mchv1
2011-08-10 16:38:38 +02:00
Vo Minh Thu 19a21de5e1 [FIX] expression: better semantic for in/not in w.r.t. null values:
In SQL, not in (2, 7, 9) will return only non-null records.
In OpenERP, a domain with not in [2, 7, 9] should return
every record whose value is not 2 or 7 or 9, including
the one with a null value.
This means that the union of (not in XXX) and (in XXX)
will return the whole set.

bzr revid: vmt@openerp.com-20110810130646-2y822a276igz2f1g
2011-08-10 15:06:46 +02:00
Vo Minh Thu 784a2d6add [REF] expression: normalize the operator w.r.t. the right operand so that it is done in one place.
bzr revid: vmt@openerp.com-20110810120057-ruijgl9w4zce1teg
2011-08-10 14:00:57 +02:00
Vo Minh Thu c7ccae6feb [REF] expression: unnecessary code in parse() because __leaf_to_sql() is already doing the work.
bzr revid: vmt@openerp.com-20110810102922-xe2oxkgorarco4vm
2011-08-10 12:29:22 +02:00
Vo Minh Thu a32476c6d9 [FIX] expression: the <> can be part of leaves (before normalization).
bzr revid: vmt@openerp.com-20110810092859-mzp9nmo81azxtq8s
2011-08-10 11:28:59 +02:00
Vo Minh Thu 44b3499a73 [FIX] expression: better handling of []/False with in/not in.
The newly added tests were wrong before the fix.
The change might break existing code if it was relying
on this broken behavior.
This also starts a better separation of concern between
parse() and __leaf_to_sql.

bzr revid: vmt@openerp.com-20110810085604-1f6ahwzuzfklj1b7
2011-08-10 10:56:04 +02:00
Vo Minh Thu 64346c63a4 [FIX] expression: perform a check on domain after the <> operator is removed.
bzr revid: vmt@openerp.com-20110810071910-ykz0ji9nz7fqteuj
2011-08-10 09:19:10 +02:00
Vo Minh Thu 187dc4c199 [REF]: expression: simplified <> into != in a pre-step,
put some warnings (which might get boring, we will see).

bzr revid: vmt@openerp.com-20110809174814-4uja94uo2spzcvm5
2011-08-09 19:48:14 +02:00
Olivier Dony c90c1a735d [MERGE] latest trunk
bzr revid: odo@openerp.com-20110809160953-i1yrg5knplw4jy9l
2011-08-09 18:09:53 +02:00
Vo Minh Thu 091e9989d5 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110809154337-5l5hbbhot347ci82
2011-08-09 17:43:37 +02:00
Vo Minh Thu 2334d4be73 [REF] expression: cleaning.
bzr revid: vmt@openerp.com-20110809154221-550a57hblf4v2foe
2011-08-09 17:42:21 +02:00
Antony Lesuisse 330e12c557 [MERGE] trunk-usability-config-log-rco
bzr revid: al@openerp.com-20110806015221-jumsqgm6a9ofknr7
2011-08-06 03:52:21 +02:00
Raphael Collet 2d353ca2f8 [IMP] disable res.log when running config wizards; to be tested
bzr revid: rco@openerp.com-20110805153134-snpfjuw859wkrq36
2011-08-05 17:31:34 +02:00
gpa 66b0db7d3b [FIXED] Fixed the problem keyerror id
bzr revid: gpa@tinyerp.com-20110729133455-oed1zbu6qv9aa4uo
2011-07-29 19:04:55 +05:30
Vo Minh Thu c4d7dde645 [REF] netsvc: object_proxy is no longer in netsvc.
bzr revid: vmt@openerp.com-20110729083824-onx5kklbgzb9pok2
2011-07-29 10:38:24 +02:00
Vo Minh Thu 64490ad5ac [REF] netsvc: removed unused kwarg.
bzr revid: vmt@openerp.com-20110728141910-r0z95l3mf1zeh8us
2011-07-28 16:19:10 +02:00
Vo Minh Thu e193912717 [REF] netsvc: removed exportMethod that was only used with the previously removed class LocalService.
bzr revid: vmt@openerp.com-20110728123916-cobk8vk2oktkidke
2011-07-28 14:39:16 +02:00
Vo Minh Thu 44d41334d7 [REF] osv: osv_memory is really just osv,
the change is not enough as we still want to differentiate between regular osv and osv
that should be wiped from the db from time to time.

bzr revid: vmt@openerp.com-20110728082752-39jur9oo0m93ebzh
2011-07-28 10:27:52 +02:00
Vo Minh Thu 69eb057063 [REF] expression: cosmetic changes.
bzr revid: vmt@openerp.com-20110726184806-j3nejlzo9ez5epb7
2011-07-26 20:48:06 +02:00
Vo Minh Thu 7315181412 [IMP] expression: added a small comment.
bzr revid: vmt@openerp.com-20110726172853-4yoxl1bdnd1sopvf
2011-07-26 19:28:53 +02:00
Vo Minh Thu 1fc22273aa [REF] cosmetic change.
bzr revid: vmt@openerp.com-20110726172458-tg9pxfr29suhczgt
2011-07-26 19:24:58 +02:00
Vo Minh Thu 705cbcf213 [IMP] expression: make one more assert pass in expression.py tests.
bzr revid: vmt@openerp.com-20110726152435-41jv1oryjkmiiy07
2011-07-26 17:24:35 +02:00
Vo Minh Thu 8522366247 [FIX] hack to (not) evaluate normalized domains:
expression.py now always normalize its given domain, but the evaluation code
for the orm_memory is just lacking. The fix simply skips any operator.

bzr revid: vmt@openerp.com-20110726152122-hi8y65fixcx65me8
2011-07-26 17:21:22 +02:00
Vo Minh Thu 53ff3e9a13 [REF] expression: splitted execute_recursive_in() in two:
- it does two unrelated things
- splitting it makes visible that ids2 and operator are no more used in some calls
- _rec_convert now behaves differently but it probably cannot be called with an empty ids arg anyway.

bzr revid: vmt@openerp.com-20110726142244-54ty1gn7jxxz3cwi
2011-07-26 16:22:44 +02:00
Vo Minh Thu 7b8dfa72ed [IMP] expression: added some tests.
bzr revid: vmt@openerp.com-20110726125605-jr1fi2su315nkanz
2011-07-26 14:56:05 +02:00
Vo Minh Thu 5858a06d5d [IMP] expression: some tests, some cleaning, and a fix:
child_of_right_to_ids() had an uninitialized field_obj variable.

bzr revid: vmt@openerp.com-20110725150721-mm4fhnhm17ill29b
2011-07-25 17:07:21 +02:00
Vo Minh Thu a9e89a49b2 [REF] expression: instanciating an expression now "parses" it, moved some methods as functions, introduced some nice globals.
bzr revid: vmt@openerp.com-20110722153649-atojff0vp34076id
2011-07-22 17:36:49 +02:00
Nimesh (Open ERP) 7f367572ed Invalid error message when import failed
lp bug: https://launchpad.net/bugs/811519 fixed

bzr revid: nco@tinyerp.com-20110720100445-4ia0d7y3rs4ryzjf
2011-07-20 15:34:45 +05:30
Vo Minh Thu f59a0b6025 [MERGE] import: support for comma-separated ids in one2many, actually link the records.
- not a real merge, as I just recovered the diff. original code by tfr.

bzr revid: vmt@openerp.com-20110719122802-64jxm0h5uftsf94k
2011-07-19 14:28:02 +02:00
Olivier Dony 9f3fd2a1fc [FIX] orm: avoid crash when an osv inherits from an osv_mem that has no _sql_constraints
bzr revid: odo@openerp.com-20110718173151-hsq5pyzq8l5w1j7n
2011-07-18 19:31:51 +02:00
Olivier Dony aa749dd921 [IMP] browse_record: add refresh() method for discarding the cache
bzr revid: odo@openerp.com-20110718173044-56mxet191sog3hfm
2011-07-18 19:30:44 +02:00
Xavier Morel d45e291329 [FIX] name of ordering param in read_group docstring: it's orderby not order
bzr revid: xmo@openerp.com-20110713092003-83ot1xsivziy4p33
2011-07-13 11:20:03 +02:00
Vo Minh Thu 622e58b183 [MERGE] fields.py: cleaned a bit fields.property.
bzr revid: vmt@openerp.com-20110712153056-r02ulhgq8gnorinr
2011-07-12 17:30:56 +02:00
Antony Lesuisse 7c01ea22f3 [FIX] apply some merge review feeback
bzr revid: al@openerp.com-20110712143532-s0jeuh5rglzwijpn
2011-07-12 16:35:32 +02:00
Vo Minh Thu 1f6833e708 [IMP] fields.py: removed unused import (and cyclic dependency!).
bzr revid: vmt@openerp.com-20110712083711-6serbntp8y5fn3qy
2011-07-12 10:37:11 +02:00
Vo Minh Thu cadfd7d85f [FIX] fields.property: typos/misnamed variables.
bzr revid: vmt@openerp.com-20110711161558-kac442kzcu3ujvj4
2011-07-11 18:15:58 +02:00
Vo Minh Thu e3725cb3a6 [FIX] fields.property: set the m2o fields as False instead of browse_null.
bzr revid: vmt@openerp.com-20110711142503-pokzph1wgo2j3223
2011-07-11 16:25:03 +02:00
Vo Minh Thu 5265ceeffc [IMP] fields.py: removed unnecessary initialization.
bzr revid: vmt@openerp.com-20110711131804-1p9qk2j9zp2uuevy
2011-07-11 15:18:04 +02:00
Vo Minh Thu 2fe91df6ad [IMP] fields.py: tidying up before merging in trunk.
bzr revid: vmt@openerp.com-20110711123414-5nf29awpui5x0pp6
2011-07-11 14:34:14 +02:00
Quentin (OpenERP) b363bfb392 [FIX] openerp/osv/fields.py: _get_defaults() and _fnct_read() of property fields cleaned and fixed as requested on merge proposal
-_get_defaults(): improved docstring in order to follow RST docstring format
-_get_defaults(): removed weird loop in _get_defaults as there is always 1 element only
-_fnct_read(): make name_get as root
-_fnct_read(): check existence for m2o fields (as root)
-_fnct_read(): check for type of property field is now done on reliable information

bzr revid: qdp-launchpad@openerp.com-20110708125106-0q0wj5zncaa7yp0w
2011-07-08 14:51:06 +02:00
niv-openerp 4793c68939 [imp] Improved modifiers algorithm to also take the "states" attribute into account.
bzr revid: nicolas.vanhoren@openerp.com-20110707155135-jjinihfc6kylwf9k
2011-07-07 17:51:35 +02:00
Quentin (OpenERP) 760471863a [FIX] fields.py: reading and writing on ir.property fields
bzr revid: qdp-launchpad@openerp.com-20110707140359-mxj1or10gzvde3te
2011-07-07 16:03:59 +02:00
Quentin (OpenERP) 1e57f21cb7 [IMP] openerp/osv/fields.py: reading a property field is now using the function get() of ir.property object.
bzr revid: qdp-launchpad@openerp.com-20110707133733-aua4dygdjjmhryap
2011-07-07 15:37:33 +02:00
Vo Minh Thu 00ab8dbc08 [MERGE] setting a o2m to null unlinks the other side or sets it to null according to the ondelete value.
bzr revid: vmt@openerp.com-20110705123728-xp2zyiv17xz063oj
2011-07-05 14:37:28 +02:00
Vo Minh Thu a13109ea93 [REVERT] re-apply the 4 commits that were reverted just after, 4 commits ago.
bzr revid: vmt@openerp.com-20110705122222-bhim9uft3l3sqee8
2011-07-05 14:22:22 +02:00
niv-openerp f7851b64ae [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110705085322-9maq2605k6dvnfho
2011-07-05 10:53:22 +02:00
niv-openerp 708855467f [imp] changed meaning of operation 3 on o2m to behave like operation 5
bzr revid: nicolas.vanhoren@openerp.com-20110705085106-xepnebw12sbq8s9b
2011-07-05 10:51:06 +02:00
Olivier Dony ce0d89e7e7 [IMP] fields.function: removed method=True param, added docstring
The 'method' param was quite useless, as 100% of functions
fields were using method=True. In addition, there is no need
to distinguish methods and functions, as methods are unbound
and passed as function objects in the declaration of a function
field, so they only need a proper signature.
Finally, docstring was added for fields.function class,
based on current doc from developer book (in preparation of
future API doc).
(A fix in addons follows, getting rid of all the useless
method=True params there too).

bzr revid: odo@openerp.com-20110701232328-flgxulxva70vnyxr
2011-07-02 01:23:28 +02:00
P. Christeas 7c8665bb69 [MERGE] docstrings improvements and preparation for api-doc structure
bzr revid: odo@openerp.com-20110701231956-93zu7xtibpo06eqm
2011-07-02 01:19:56 +02:00
Olivier Dony 1ac0c5f053 [REVERT] last 4 revisions on fields_view_get, need further review
bzr revid: odo@openerp.com-20110701151839-g8nhfr4z8pmkflah
2011-07-01 17:18:39 +02:00
Vo Minh Thu 8845ae1259 [IMP]: fields_view_get: respect priority of node over fields, and of static invisible over dynamic invisible.
bzr revid: vmt@openerp.com-20110630153334-d34qep1727gdbh8l
2011-06-30 17:33:34 +02:00
niv-openerp 4dcc76071e [imp] small bug in o2m 5 improvement
bzr revid: nicolas.vanhoren@openerp.com-20110630100404-5tkdsafuf9ju4xcw
2011-06-30 12:04:04 +02:00
niv-openerp 350de710c4 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110630100025-fdjv3f9rsa10u47d
2011-06-30 12:00:25 +02:00
niv-openerp fa19ca6e47 [imp] modified meaning of operation 5 on o2m to delete the pointed rows if on delete cascade
bzr revid: nicolas.vanhoren@openerp.com-20110629162746-dn0tosycss4a0cne
2011-06-29 18:27:46 +02:00
Vo Minh Thu b8cc3b0d47 [REF]: fields_view_get: continuing the merge of attrs:
- pass a flag to __view_look_dom indicating if we are in a tree view
(this is needed as it can contain more complex expression, and its meaning
is different as it affects the tree column, instead of a single field on a line).
- pass the result of fields_get to __view_look_dom to let it augment
the nodes with info from the python fields.

bzr revid: vmt@openerp.com-20110628142753-7819z5sp39qxfxev
2011-06-28 16:27:53 +02:00
Vo Minh Thu 027d082936 [MERGE] some refactoring in fields_view_get.
bzr revid: vmt@openerp.com-20110627132601-qw6ejx2v4xywq4ai
2011-06-27 15:26:01 +02:00
Vo Minh Thu a8facfdb38 [MERGE] fix regression
introduced at revno: 3466, revision-id: vmt@openerp.com-20110617072608-5tmwf2g2qb0pwrhk

bzr revid: vmt@openerp.com-20110627104748-hvvc3sb7nmxk85db
2011-06-27 12:47:48 +02:00
Vo Minh Thu ab0d721416 [REF] orm: added TODOs.
bzr revid: vmt@openerp.com-20110627095059-lf8lctk1z0yawgrk
2011-06-27 11:50:59 +02:00
Olivier Dony 8654be5ca3 [FIX] orm.unlink(): cascade deletion of ir.model.data performed as admin
Also replaced all uid == 1 references with a ROOT_USER_ID constant, 
to make it more explicit.

bzr revid: odo@openerp.com-20110627092538-kq8hrjoii5o9l7k4
2011-06-27 11:25:38 +02:00
Vo Minh Thu 82a3dca2d7 [FIX] fields: pass around the context in the create case of the many2many (thankks to rco).
bzr revid: vmt@openerp.com-20110624140103-z7t3c029mc4uq5wu
2011-06-24 16:01:03 +02:00
Olivier Dony 301497c543 [IMP] lint cleanup
bzr revid: odo@openerp.com-20110624133335-jf5kg6dh9kgxw2dg
2011-06-24 15:33:35 +02:00
Olivier Dony 60cbf9bf14 [MERGE] sync with trunk
bzr revid: odo@openerp.com-20110624102631-kiy8j2d1fc7heeco
2011-06-24 12:26:31 +02:00
Yogesh (OpenERP) b505076369 [FIX] add get method in refrence field and check if refrence id not exists then return false.
lp bug: https://launchpad.net/bugs/783961 fixed

bzr revid: ysa@tinyerp.com-20110624084656-c2jd3xskk10fwt35
2011-06-24 14:16:56 +05:30
Vo Minh Thu c68edd3682 [MERGE] expression: all child_of cases can accept the same right operand.
bzr revid: vmt@openerp.com-20110624084311-q8581bjo3p6qji9e
2011-06-24 10:43:11 +02:00
Vo Minh Thu 8beaaedd0a [IMP] fields_view_get: began to handle states attr server-side.
bzr revid: vmt@openerp.com-20110623101030-95t095jp5evdb1c3
2011-06-23 12:10:30 +02:00
P. Christeas cf6e623f7d API docs: settings file and titles at modules
bzr revid: xrg@linux.gr-20110623090357-nazly8vpfnw0iskr
2011-06-23 12:03:57 +03:00
P. Christeas b0f06f7e52 orm, tools, addons: Doc strings improvements
bzr revid: xrg@linux.gr-20110623090228-4gn6xoyykcvfhv13
2011-06-23 12:02:28 +03:00
Vo Minh Thu 0e6668a391 [MERGE] ir_model_data unlinking does not use _unlink anymore, clears caches.
bzr revid: vmt@openerp.com-20110622135344-i4u23z22binbq8h1
2011-06-22 15:53:44 +02:00
Vo Minh Thu 88b74dd315 [REF] fields_view_get: merge fields attributes inside the architecture as a new attribute.
bzr revid: vmt@openerp.com-20110622083833-xoh5b5r08xxgljqs
2011-06-22 10:38:33 +02:00
Vo Minh Thu f3b7293c2e [REF] orm: add a column_info class to represent entries in _inherit_fields,
code comes from the trunk-sharing-features branch (by odo).

bzr revid: vmt@openerp.com-20110621155342-8a3o153rkpsd5s12
2011-06-21 17:53:42 +02:00
Vo Minh Thu 802ecdd6cf [REF] orm/_inherits_reload: unnecessary dict.update() (the entries are manually updated afterwards).
bzr revid: vmt@openerp.com-20110621144543-z03m9rceohmayjxu
2011-06-21 16:45:43 +02:00
Vo Minh Thu 41b066a085 [FIX] fields_view_get: corrected an error introduced at rev 3467.
bzr revid: vmt@openerp.com-20110620141005-togs3phmto931wle
2011-06-20 16:10:05 +02:00
Vo Minh Thu ee5eb80951 [FIX] orm/fields_view_get: translate correctly confirm/sum/help:
- view_header_get can override the string attribute but should
  not prevent the translation of the other attributes.
- the problem goes back to revno 319 when there was only a string and sum was added.

bzr revid: vmt@openerp.com-20110620120600-lu9csho8ws2habfp
2011-06-20 14:06:00 +02:00
Vo Minh Thu 53f594eb67 [REF] orm/fields_view_get: replaced simple loop by dict.update().
bzr revid: vmt@openerp.com-20110620120157-xwf09egoyq3xc5qo
2011-06-20 14:01:57 +02:00
Yogesh (OpenERP) f6c88941f5 [FIX] fix problem of improve condtion of checking key is available in dict.
lp bug: https://launchpad.net/bugs/799637 fixed

bzr revid: ysa@tinyerp.com-20110620110330-brg01vy68rmo6wiq
2011-06-20 16:33:30 +05:30
Vo Minh Thu 8645487d61 [FIX] orm: typo in fields_view_get.
bzr revid: vmt@openerp.com-20110620095642-3vx11f7cqad2e71k
2011-06-20 11:56:42 +02:00
Olivier Dony 66b4f6fbcd [FIX] fields: function/property fields should perform their name_get() calls for m2o as uid 1
This is because the permissions for reading the display name
of a m2o record does not depend on access to the target table,
but depends on the user access to the current table.
Users that are denied read access to the target table may still
see the names of the records linked to the documents they can
read

bzr revid: odo@openerp.com-20110619171102-sh0derdj50epea7b
2011-06-19 19:11:02 +02:00
Olivier Dony 36d98cb14f [FIX] orm.fields_get: typo in last refactoring
bzr revid: odo@openerp.com-20110619115701-q06la7l6jhmihdk6
2011-06-19 13:57:01 +02:00
Olivier Dony 6df3bc8b67 [FIX] orm.fields_get: typo in last refactoring
bzr revid: odo@openerp.com-20110619115410-bdmd4zcm3o69515o
2011-06-19 13:54:10 +02:00
Olivier Dony 4f6bee5bf7 [MERGE] latest trunk
bzr revid: odo@openerp.com-20110617170517-pvhf772lewqk3z8c
2011-06-17 19:05:17 +02:00
Vo Minh Thu f46cfc589d [REF] fields_viw_get: trying to get something clearer...
bzr revid: vmt@openerp.com-20110617154440-i013qj8qukxhqhnl
2011-06-17 17:44:40 +02:00
Vo Minh Thu aca951da39 [REF] orm: simpler `_find` function, renamed `locate`.
bzr revid: vmt@openerp.com-20110617093126-v0951wvy48r1db4h
2011-06-17 11:31:26 +02:00
Vo Minh Thu ccca7e938a [REF] orm: fields_get in pieces, now with docstring.
bzr revid: vmt@openerp.com-20110617072608-5tmwf2g2qb0pwrhk
2011-06-17 09:26:08 +02:00
Vo Minh Thu abb606aa7c [MERGE] orm: _auto_init made of smaller methods, use a metaclass to discover new models.
bzr revid: vmt@openerp.com-20110615160123-7bk8u94y916mdpkj
2011-06-15 18:01:23 +02:00
Vo Minh Thu 55c220f137 [MERGE] [osv: moved osv_pool to modules/registry.
bzr revid: vmt@openerp.com-20110615153954-d0fbws57z2w2r6db
2011-06-15 17:39:54 +02:00
Vo Minh Thu e4d8e91c4a [MERGE] `multi` support for function fields.
bzr revid: vmt@openerp.com-20110615152659-1g2s5vc3outecd71
2011-06-15 17:26:59 +02:00
Yogesh (OpenERP) 45e8ba8474 [IMP] improve code.
bzr revid: ysa@tinyerp.com-20110615102551-np3mfev3eq5z4iwp
2011-06-15 15:55:51 +05:30
Vo Minh Thu dc4ee86376 [REF] osv: use a metaclass to discover new models.
bzr revid: vmt@openerp.com-20110615102115-sjobt06ag72xiqaf
2011-06-15 12:21:15 +02:00
Yogesh (OpenERP) 2f635092d2 Improve code.
bzr revid: ysa@tinyerp.com-20110615084717-ya7v52ngikwn4zy8
2011-06-15 14:17:17 +05:30
Vo Minh Thu 23dec280c7 [MERGE] osv: db_name changed to dbname.
bzr revid: vmt@openerp.com-20110615073142-t97lwikzrpe1g5js
2011-06-15 09:31:42 +02:00
Vo Minh Thu 26f22874d9 [LINT] removed unused variable, forgot to change two variables in last commit, corrected typo introduced at 3417.6.6.
bzr revid: vmt@openerp.com-20110615072231-jh977xk1jupekkpp
2011-06-15 09:22:31 +02:00
Vo Minh Thu e375049414 [REF] osv: moved osv_pool to modules/registry.
bzr revid: vmt@openerp.com-20110614142226-yd3y39a8z3ubwvxm
2011-06-14 16:22:26 +02:00
Vo Minh Thu 8965db1ec2 [DEL] orm: removed half-baked fix.
bzr revid: vmt@openerp.com-20110614113354-rcsyua15m1kqhrgj
2011-06-14 13:33:54 +02:00
Vo Minh Thu e360ae580a [REF] orm: added some comments.
bzr revid: vmt@openerp.com-20110614101311-bjy33thvzfnla74t
2011-06-14 12:13:11 +02:00
Vo Minh Thu 08b750af47 [REF] orm: brake _auto_init in shorter methods.
bzr revid: vmt@openerp.com-20110614093715-yxaiqd2xzf6vdy8w
2011-06-14 11:37:15 +02:00
Vo Minh Thu 75b8291486 [IMP] orm: added comment, and delete an attribute when it is no more needed.
bzr revid: vmt@openerp.com-20110614084415-0noz6dlclnr09sbh
2011-06-14 10:44:15 +02:00
Nimesh (Open ERP) 7779f83e4a Improving error messages when writing invalid values to reference/selection fields
lp bug: https://launchpad.net/bugs/777472 fixed

bzr revid: nco@tinyerp.com-20110613131202-30bic6891ezlnq2e
2011-06-13 18:42:02 +05:30
Yogesh (OpenERP) a0eba446d9 [IMP] improve get method of function field.
bzr revid: ysa@tinyerp.com-20110613111949-u71pez6qpdfwk1iy
2011-06-13 16:49:49 +05:30
Nicolas Vanhoren 68102fecd1 [MERGE] addition of name_create() ORM method for new m2o behavior in 6.1
bzr revid: odo@openerp.com-20110610173130-3dvj5t2ji8buwjrg
2011-06-10 19:31:30 +02:00
niv-openerp f888b06959 [imp] added method name_create to orm
bzr revid: nicolas.vanhoren@openerp.com-20110610161002-76kfpwb1xexryfmh
2011-06-10 18:10:02 +02:00
Vo Minh Thu 1b45a892dd [REF] orm: defer foreign key creation.
bzr revid: vmt@openerp.com-20110610140521-mdd6zvvzeoubier4
2011-06-10 16:05:21 +02:00
Nimesh (Open ERP) 694693905a add yml test-case for =like and =ilike operator
lp bug: https://launchpad.net/bugs/788106 fixed

bzr revid: nco@tinyerp.com-20110610133658-z4avh4z60moecyde
2011-06-10 19:06:58 +05:30
Yogesh (OpenERP) 110483e93d [FIX] fix problem of ir.property created if same value exists then record not create in ir.property object.
lp bug: https://launchpad.net/bugs/726592 fixed

bzr revid: ysa@tinyerp.com-20110608104128-7mdykmk0ovqenz6u
2011-06-08 16:11:28 +05:30
Naresh (OpenERP) 946730f439 [IMP]:naming convention and added test for id,ids
bzr revid: nch@tinyerp.com-20110608052603-ya0u4ep0yt4h13jy
2011-06-08 10:56:03 +05:30
Antony Lesuisse 970b19b8b4 [IMP] new tools.cache cleaner, 10% speedup and more to come...
bzr revid: al@openerp.com-20110608030330-d0dsv2k6n0w3lyd5
2011-06-08 05:03:30 +02:00
Yogesh (OpenERP) 2a9a5e2a0e Improve code.
bzr revid: ysa@tinyerp.com-20110603101217-v69rcqtpcfics925
2011-06-03 15:42:17 +05:30
Yogesh (OpenERP) 9cb3205a64 [FIX] fix problem of search multiple conditions O2M with active=False then not work.
lp bug: https://launchpad.net/bugs/711919 fixed

bzr revid: ysa@tinyerp.com-20110603095526-s26wgkahwc1d6zfd
2011-06-03 15:25:26 +05:30
Yogesh (OpenERP) 522b77fdfa [FIX] fix problem of variable name.
bzr revid: ysa@tinyerp.com-20110601094908-9o24f6ohms7fx6p9
2011-06-01 15:19:08 +05:30
Olivier Dony bf0e9e923c [FIX] osv_memory: load config params in __init__ to avoid uninitialized values
bzr revid: odo@openerp.com-20110601055031-xyungliji7snspsj
2011-06-01 07:50:31 +02:00
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