Commit Graph

96 Commits

Author SHA1 Message Date
Xavier Morel cbaa36c8cc [FIX] typo, might want to launch the software from time to time while changing stuff
bzr revid: xmo@openerp.com-20110909154242-gve3dgsbmg6crkya
2011-09-09 17:42:42 +02:00
Xavier Morel 4b8be3a051 [IMP] use early returns instead of a single return point
bzr revid: xmo@openerp.com-20110909153935-uk4cggyv78nfdjqt
2011-09-09 17:39:35 +02:00
Xavier Morel f74c55182a [IMP] lift mapping from field types to PGTYPES outside get_pg_type
bzr revid: xmo@openerp.com-20110909152622-114y4401x6gw6a79
2011-09-09 17:26:22 +02:00
Xavier Morel b9ed013504 [IMP] use logging API in get_pg_types
bzr revid: xmo@openerp.com-20110909152445-pol8ko3ckzc6p7s0
2011-09-09 17:24:45 +02:00
Xavier Morel 7a3960f736 [IMP] remove size inference for selection lists with str|unicode value choices, simplify selection pg_type selection
* if the first element of the choices list is an integer, use int4
* if the field has a size, use that size
* else use an unrestricted varchar

bzr revid: xmo@openerp.com-20110909152307-ralzt1g8l1b3e46x
2011-09-09 17:23:07 +02:00
Xavier Morel 8668ad7ed3 [IMP] have function fields delegate their pg_type discovery to get_pg_type
* add a type override to get_pg_type, so the function field can pass itself as another field type
* special-case the 'selection' role, not sure it's correct but it was pretty special last time around (I guess since we don't have the field's values available we can't just do the type/size inference of get_pg_type)

bzr revid: xmo@openerp.com-20110909145213-y172z8eyfnond43w
2011-09-09 16:52:13 +02:00
Xavier Morel cf44b49c93 [IMP] extract VARCHAR typing, if no size is provided (or the size is 0) don't put a limit on the varchar
bzr revid: xmo@openerp.com-20110909143349-5sykc4lpsn3rxf5w
2011-09-09 16:33:49 +02:00
Xavier Morel 09b63ae6ea [FIX] don't *eval* field names to get the field type associated with a function field
bzr revid: xmo@openerp.com-20110909141541-p172s7jqu597sjc9
2011-09-09 16:15:41 +02:00
Xavier Morel ddadb2ce75 [FIX] issue in splitting field paths for export: would create empty path sections because too eager
do replacement in two passes of re-base replacement: replace old-style 'field:id' and 'field.id' in resp. 'field/id' and 'field/.id', don't touch anything else (especially not 'field/.id') and leave them through instead.

bzr revid: xmo@openerp.com-20110831094547-8evd7ecm5qojspnr
2011-08-31 11:45:47 +02:00
Vo Minh Thu bdd0c7cf3f [IMP] simplified cache implementation (and stored on the osv), does not support contexts.
bzr revid: vmt@openerp.com-20110830121541-abov2wezdn6kl2dc
2011-08-30 14:15:41 +02:00
Olivier Dony 3f00bfc405 [FIX] registry: use a unique list of models to load per module
This is necessary to preserve the model loading order
as defined in the module. This was broken when the 
metaclass was introduced to make the explicit model
constructor call optional.
One consequence is that the order in which the classes
are declared in the module really defines their
initialization order, even if the constructors are 
later called explcitly in a different order.
This latter case should be fairly rare, and easy to
fix too - simply putting the class declaration in the
right order.

bzr revid: odo@openerp.com-20110826161736-lgnpurtbcqtbseey
2011-08-26 18:17:36 +02:00
Vo Minh Thu 6fdadb04f5 [IMP] tools.cache: added missing clean_caches_for_db replacement.
bzr revid: vmt@openerp.com-20110825124711-y2uckmvcoa0arz4h
2011-08-25 14:47:11 +02:00
Antony Lesuisse 86965e3884 [FIX] orm ir.translation get_source to use positional args
bzr revid: al@openerp.com-20110824231131-y33ng5x4d6j2vr6w
2011-08-25 01:11:31 +02:00
Antony Lesuisse fd83621463 [MERGE] trunk
bzr revid: al@openerp.com-20110824160936-ej26wcvgvku3lkm7
2011-08-24 18:09:36 +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
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 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
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
Antony Lesuisse 7c01ea22f3 [FIX] apply some merge review feeback
bzr revid: al@openerp.com-20110712143532-s0jeuh5rglzwijpn
2011-07-12 16:35:32 +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
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
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
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 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 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
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
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 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