Commit Graph

33515 Commits

Author SHA1 Message Date
Xavier Morel 5e64318f94 [IMP] attempt to make handling of readonly & states.readonly slightly clearer
bzr revid: xmo@openerp.com-20110831131141-wu0f4p6etaou3xdl
2011-08-31 15:11:41 +02:00
Xavier Morel 41d3a51c82 [IMP] simplify sorting of subfields by using key= param to list.sort. Also, listcomp for serializing
bzr revid: xmo@openerp.com-20110831124435-8hwj517bhdpzaymv
2011-08-31 14:44:35 +02:00
Xavier Morel ef13a10a13 [FIX] import compatible as a boolean value
bzr revid: xmo@openerp.com-20110831124345-0397wtygt5aozc89
2011-08-31 14:43:45 +02:00
Xavier Morel 9ec96027dc [IMP] remove redundant code
bzr revid: xmo@openerp.com-20110831123509-8xc26diq35zd5h4m
2011-08-31 14:35:09 +02:00
Xavier Morel 1ca1f7ff0a [IMP] deduplicate code in handling of relational fields for exports listing
bzr revid: xmo@openerp.com-20110831123401-o9rsbu4p9vux0ywf
2011-08-31 14:34:01 +02:00
Xavier Morel 5be7b90758 [IMP] boolean tests/checks
bzr revid: xmo@openerp.com-20110831122859-txaxld168x237v6t
2011-08-31 14:28:59 +02:00
Xavier Morel dbbae75ed5 [FIX] typo
bzr revid: xmo@openerp.com-20110831122844-hk17tcu051eztif7
2011-08-31 14:28:44 +02:00
Xavier Morel 1d4553bfdd [REM] to more useless uses of enumerate
bzr revid: xmo@openerp.com-20110831122200-mb5dgm2elyjg8ljr
2011-08-31 14:22:00 +02:00
Xavier Morel 0e302b7cd5 [IMP] simplify traversal of fields: remove unused enumerate, don't create a second collection for the keys (instead just sort the dict.iteritems() result correctly)
bzr revid: xmo@openerp.com-20110831122101-1sy2uruu9e8bmrv6
2011-08-31 14:21:01 +02:00
Xavier Morel c57b768d87 [IMP] remove not-very-useful test
bzr revid: xmo@openerp.com-20110831121154-mx7qeu9r7ehhujgc
2011-08-31 14:11:54 +02:00
Xavier Morel e99c627d7f [IMP] make 'import compatible' an actual boolean, not a boolean-ish non-bool
bzr revid: xmo@openerp.com-20110831112854-kczxaj3v79vx32ya
2011-08-31 13:28:54 +02:00
Xavier Morel cf4d17aa60 [IMP] lift import_compat and parent_field_type as direct kwargs to Export.get_fields, from contents to the params mapping
bzr revid: xmo@openerp.com-20110831111201-g0c5qpld5zjyafnk
2011-08-31 13:12:01 +02:00
Xavier Morel cf3a910e73 [REM] unused parameter field_parent on Export.get_fields
bzr revid: xmo@openerp.com-20110831110900-uocvplitkr10ob1r
2011-08-31 13:09:00 +02:00
Xavier Morel 781db2f3b3 [FIX] don't fuck up name ordering in exported file: match what was requested by the user
bzr revid: xmo@openerp.com-20110831110439-5q04tn4uqqu0ytf2
2011-08-31 13:04:39 +02:00
Xavier Morel 4442c1f43b [IMP] does not seem to be any reason to use fields_view_get to get fields data, remove
bzr revid: xmo@openerp.com-20110831105419-2tmxdy7u4oxw0ynh
2011-08-31 12:54:19 +02:00
Xavier Morel 972a191a33 [FIX] correctly return a deferred from openerp.base.DataExport.start, even though there probably is no need to do so
bzr revid: xmo@openerp.com-20110830134353-52y9p8tfx6aen84k
2011-08-30 15:43:53 +02:00
Xavier Morel 3b824c76e9 [FIX] don't coerce values to str before writing them to the worksheet in excel export
especially since xlwt is perfectly able to deal with unicode instances without blowing up like a 'tard

bzr revid: xmo@openerp.com-20110830134305-iu354whbr0c0kvpw
2011-08-30 15:43:05 +02:00
Xavier Morel 9df1318f4f [IMP] have the export dialog fetch possible export formats from the server
bzr revid: xmo@openerp.com-20110830132326-ac0f7xs3h1jr3a7j
2011-08-30 15:23:26 +02:00
Xavier Morel c276c2d67c [IMP] make export extensible
bzr revid: xmo@openerp.com-20110830130632-t96hsz4jxjp69crh
2011-08-30 15:06:32 +02:00
Xavier Morel e53d25ef17 [IMP] remember to set base in parseInt
bzr revid: xmo@openerp.com-20110830121158-kmfs2x0tqj6c8v3b
2011-08-30 14:11:58 +02:00
Xavier Morel 33f5bf6a2b [IMP] make removing all fields selected for an export slightly more efficient (by emptying the whole select instead of removing options individually)
bzr revid: xmo@openerp.com-20110830115839-i5xfaqqmrg2m3w8u
2011-08-30 13:58:39 +02:00
Xavier Morel e0e1b1f246 [IMP] simplify code collecting arguments to data export a bit, remove useless temp variables
bzr revid: xmo@openerp.com-20110830112704-xc19idvo4q90kqt6
2011-08-30 13:27:04 +02:00
Xavier Morel c326d6942c [IMP] get export to work correctly with Session.get_file (so the user really downloads a file each time)
bzr revid: xmo@openerp.com-20110830110204-lf3qi2r5ck8avcs9
2011-08-30 13:02:04 +02:00
Xavier Morel 8448cdc63d [IMP] reliability fix in token handling
bzr revid: xmo@openerp.com-20110830102346-b5a9wmx1uxjehp7z
2011-08-30 12:23:46 +02:00
Xavier Morel 78b10fb5f4 [REN] openerp.base.Session#getFile to openerp.base.Session#get_file: we're using python-style underscore_separated names for methods
bzr revid: xmo@openerp.com-20110830090609-xdmeuroca1p6zue1
2011-08-30 11:06:09 +02:00
Xavier Morel 79fb169fc7 [FIX] breakage in case of repeated calls to getFile for the same form: remove token after download has completed (or errored out)
also add some documentation for openerp.base.Session.getFile

bzr revid: xmo@openerp.com-20110830090514-pa5lnxvee4qfg0zp
2011-08-30 11:05:14 +02:00
Xavier Morel 9c0486b738 [IMP] move file download API to session, so it can more easily be used for operations other than db backup
bzr revid: xmo@openerp.com-20110830085351-puvbzwwru9rbfo14
2011-08-30 10:53:51 +02:00
Xavier Morel bf83005072 [FIX] encoding and mime type for excel export files
bzr revid: xmo@openerp.com-20110829122718-y51ynodvlnkaixms
2011-08-29 14:27:18 +02:00
Xavier Morel bf4e7856b6 [IMP] fix mime type in case of excel export
bzr revid: xmo@openerp.com-20110829104812-z2i5wa10rlanwm9p
2011-08-29 12:48:12 +02:00
Xavier Morel 272cc8b0c7 [REM] error handling around xlwt import
bzr revid: xmo@openerp.com-20110829104755-mkw8fdgwtppx3a21
2011-08-29 12:47:55 +02:00
Xavier Morel 81d2b20791 [REM] useless conditional (always true) and unused associated variable
bzr revid: xmo@openerp.com-20110829103809-434etbz8mx3zvufp
2011-08-29 12:38:09 +02:00
Xavier Morel 1cc90eebd9 [IMP] move a bunch of trivial python RPC methods to usage of normal dataset methods in JS
bzr revid: xmo@openerp.com-20110826152430-8li5tzzlzfr99nda
2011-08-26 17:24:30 +02:00
Xavier Morel 5ef387c85c [IMP] more template markup cleanup, some trivial cleanup of the python code
bzr revid: xmo@openerp.com-20110826150442-j00m8sy9jib0y6ce
2011-08-26 17:04:42 +02:00
Xavier Morel 8e68d81d30 [IMP] simplify markup of main export view
bzr revid: xmo@openerp.com-20110826143914-1h9pfue36yg9e1ec
2011-08-26 16:39:14 +02:00
Xavier Morel e4bfeb49b4 [FIX] some warnings and overly complex code
bzr revid: xmo@openerp.com-20110826141439-k8eawjbx46953z16
2011-08-26 16:14:39 +02:00
Xavier Morel 863fdc0808 [FIX] reinstate bail out in clean_action in case the action is not an act_window
bzr revid: xmo@openerp.com-20110829082929-c6uhkcq0wmiis2wp
2011-08-29 10:29:29 +02:00
Antony Lesuisse 0712964066 [MERGE] partner hide categories in simplified view
bzr revid: al@openerp.com-20110828014454-8xbfck4kffsdtvrn
2011-08-28 03:44:54 +02:00
Antony Lesuisse e6db9e4b71 [IMP] renames in base/res
bzr revid: al@openerp.com-20110828001314-roc7o38bz22mr580
2011-08-28 02:13:14 +02:00
Antony Lesuisse 3f691a6c49 [IMP] res.partner.canal into crm.case.channel
bzr revid: al@openerp.com-20110827233222-cy0w9z3jdm8ye1b2
2011-08-28 01:32:22 +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
niv-openerp e03849bb35 [fix] broken one of the most important functionalities
bzr revid: nicolas.vanhoren@openerp.com-20110826140745-0vjk3ygu32di4tti
2011-08-26 16:07:45 +02:00
niv-openerp c4d8acabba [fix] problem with most related that return a list in a search_default
bzr revid: nicolas.vanhoren@openerp.com-20110826140421-yt204xv30b0ef3vz
2011-08-26 16:04:21 +02:00
Vo Minh Thu b8d25dc2b8 [FIX] openerp-server: forgot to remove the utf-8 quote as stated on the merge prop by xrg.
bzr revid: vmt@openerp.com-20110826134311-446b2gwkuyy5i1r1
2011-08-26 15:43:11 +02:00
Vo Minh Thu 4253a5f798 [MERGE] openerp-server is rewritten in a slightly better way.
Doing so, it is now not possible to both start the server and test a YAML file.
That is, testing a YAML file is similar in the translation import/export options
and does not start the server.

bzr revid: vmt@openerp.com-20110826134013-sfnlowg5xuhqxet2
2011-08-26 15:40:13 +02:00
Vo Minh Thu 2a3fe9819d [REF] openerp-server: separated the --test-file mechanism from the main code path.
bzr revid: vmt@openerp.com-20110826133301-8y7intt7vhsg5gm9
2011-08-26 15:33:01 +02:00
niv-openerp d692a02d5b [imp] fixed related behavior for calendar
bzr revid: nicolas.vanhoren@openerp.com-20110826133113-7glw38cszv5pwdqw
2011-08-26 15:31:13 +02:00
niv-openerp 7a9ff57a0e [imp] made related work with list view too
bzr revid: nicolas.vanhoren@openerp.com-20110826132835-ex26y5hyti3acgzk
2011-08-26 15:28:35 +02:00
niv-openerp a21f3c6686 [imp] make related work in form view and m2o
bzr revid: nicolas.vanhoren@openerp.com-20110826131319-qzyrv7ypmv313jgj
2011-08-26 15:13:19 +02:00
niv-openerp a703147436 [imp] made related work from form view
bzr revid: nicolas.vanhoren@openerp.com-20110826130335-fjt0c5f7s7ug2jdl
2011-08-26 15:03:35 +02:00
niv-openerp 393f146d77 [imp] make related in m2o work
bzr revid: nicolas.vanhoren@openerp.com-20110826124418-d2vw72ulgse75hgh
2011-08-26 14:44:18 +02:00