Commit Graph

46 Commits

Author SHA1 Message Date
Xavier Morel 2989c829f7 [FIX] exclude function fields from import_compatible export and from all imports
bzr revid: xmo@openerp.com-20111216114941-fr6wsfabxfqf86xw
2011-12-16 12:49:41 +01:00
Xavier Morel b5a797ba0a [IMP] mark a bunch of dialog stuff as exportable (mostly buttons, but also dialog titles)
bzr revid: xmo@openerp.com-20111215104031-h2xjkf0zwf8x8zjk
2011-12-15 11:40:31 +01:00
Xavier Morel 00ee3a8ba0 [IMP] move sections of import_result around to make flow clearer
bzr revid: xmo@openerp.com-20111201110140-ozkrhoxt0ug5qcnj
2011-12-01 12:01:40 +01:00
Xavier Morel a724dbfd1f [REM] misleading (and incorrect) validation message after import failure due to server error
lp bug: https://launchpad.net/bugs/898547 fixed

bzr revid: xmo@openerp.com-20111201110007-sy3fj347ga7pj7d8
2011-12-01 12:00:07 +01:00
Xavier Morel d2a0f9bcba [IMP] mark a bunch of strings as translatable in searchview JS
bzr revid: xmo@openerp.com-20111114101221-905mu3id02o3n2li
2011-11-14 11:12:21 +01:00
Xavier Morel 06344150eb [FIX] automatically open options box if the file fails to parse entirely
bzr revid: xmo@openerp.com-20111024142744-zeal912gqf9bvrrp
2011-10-24 16:27:44 +02:00
Xavier Morel cd59e5e6fb [ADD] open/close arrow next to import options
bzr revid: xmo@openerp.com-20111024141737-bk2rg08wvll1hgno
2011-10-24 16:17:37 +02:00
Xavier Morel b45b7ad22c [IMP] import: only show second step once file has been uploaded
bzr revid: xmo@openerp.com-20111024140658-8t9csv9i6gd30luj
2011-10-24 16:06:58 +02:00
Xavier Morel a8b81ed575 [ADD] dropdown arrow next to import autocompletes
bzr revid: xmo@openerp.com-20111024135521-aikh791r9j94moal
2011-10-24 15:55:21 +02:00
Xavier Morel c3661c0827 [FIX] failure to auto-match 'inner' fields of o2m records when importing
lp bug: https://launchpad.net/bugs/878005 fixed

bzr revid: xmo@openerp.com-20111019134936-xfo9zt1ivgocbffr
2011-10-19 15:49:36 +02:00
Xavier Morel efd0674429 [FIX] always add external ids to the list of importable fields
lp bug: https://launchpad.net/bugs/878005 fixed

bzr revid: xmo@openerp.com-20111019103822-lx0gldsmxbqb87dr
2011-10-19 12:38:22 +02:00
Xavier Morel 47d4fa6d7d [FIX] columns with default values should not be marked as required during import
bzr revid: xmo@openerp.com-20111018102108-2c1uixgbeb3t6wkx
2011-10-18 12:21:08 +02:00
Yogesh (OpenERP) 19f265f11b [FIX] import :- change variable name.
bzr revid: ysa@tinyerp.com-20111017131849-u034vkz20cw8e31t
2011-10-17 18:48:49 +05:30
Yogesh (OpenERP) 1e2e8ce9d1 [IMP] Import :- improve code.
bzr revid: ysa@tinyerp.com-20111017061602-6sv4m5ew70by57yx
2011-10-17 11:46:02 +05:30
Yogesh (OpenERP) 4d4e1a1f0e [FIX] import :- default value set on required field then remove this field on required fields list.
lp bug: https://launchpad.net/bugs/871625 fixed

bzr revid: ysa@tinyerp.com-20111012080540-1m6x6npy7e0jaoif
2011-10-12 13:35:40 +05:30
Xavier Morel 7fd9078fed [ADD] basic auto-matching of imported file columns to model fields
todo: if exact equality with field name and field string fail, a levenshtein distance test
with the field string would be pretty cool (mostly for importing stuff)

bzr revid: xmo@openerp.com-20110926100744-1mcucy3njp9fd3r5
2011-09-26 12:07:44 +02:00
Xavier Morel 60207baf44 [FIX] prevent setting a field name which does not exist in the list
bzr revid: xmo@openerp.com-20110926093024-et5kvpvvq1vm811h
2011-09-26 11:30:24 +02:00
Xavier Morel 6fb2e928ac [FIX] moved a self around so import window did not close correctly
bzr revid: xmo@openerp.com-20110923130943-293wxucafwjloxwh
2011-09-23 15:09:43 +02:00
Xavier Morel fc83119e60 [IMP] fixup field names since we only ever export xmlids anymore
might have to change that, or something

bzr revid: xmo@openerp.com-20110923124634-sk9ka293ugc159gu
2011-09-23 14:46:34 +02:00
Xavier Morel 25c38ca653 [IMP] move more import logic to javascript
bzr revid: xmo@openerp.com-20110923122202-hnp6o1ybwgugive4
2011-09-23 14:22:02 +02:00
Xavier Morel 633c27ab79 [REM] selector on an element which does not exist
bzr revid: xmo@openerp.com-20110923110605-vw82lm018q6b2grt
2011-09-23 13:06:05 +02:00
Xavier Morel f42cacc5c1 [IMP] handle lines to skip in import preview
bzr revid: xmo@openerp.com-20110923095609-ogxc6q3wnd0tez8v
2011-09-23 11:56:09 +02:00
Xavier Morel 8d0a65ec94 [IMP] handle switch indicating whether the CSV file being imported has headers
bzr revid: xmo@openerp.com-20110923094500-0jn0tb3fgix9j8wg
2011-09-23 11:45:00 +02:00
Xavier Morel a7a71dea83 [IMP] split import check result in two different templates, wait before everything's ready to setup autocompletes and check required fields & al
bzr revid: xmo@openerp.com-20110923092346-007j09xf5wfzq9zo
2011-09-23 11:23:46 +02:00
Xavier Morel baf367d0e1 [IMP] move fetching of fields for import to javascript. Also extraction of required fields
bzr revid: xmo@openerp.com-20110923083341-xa3sg2t053zonlsm
2011-09-23 10:33:41 +02:00
Xavier Morel 6bd754060e [REM] table of no use whatsoever
bzr revid: xmo@openerp.com-20110922155751-rkch0vpmhpolihxa
2011-09-22 17:57:51 +02:00
Xavier Morel 2187a3e3dd [IMP] extract duplicate fields discovery routine to its own method, to make the validation process clearer
bzr revid: xmo@openerp.com-20110922121327-zqenx9bisr8pe4kd
2011-09-22 14:13:27 +02:00
Xavier Morel c3a0d98e13 [FIX] don't declare the file is importable when there are duplicate columns selected
bzr revid: xmo@openerp.com-20110922120810-2fcmntd4w6yh9zvy
2011-09-22 14:08:10 +02:00
Xavier Morel a250e39ad3 [FIX] required fields check, maybe
bzr revid: xmo@openerp.com-20110922120328-h9eh9gl6wf28xbzd
2011-09-22 14:03:28 +02:00
Xavier Morel 0b8cfc4c26 [IMP] attempt to slighly improve duplicate field match handling in import
bzr revid: xmo@openerp.com-20110922105948-oms4h0t4uyl0qnm6
2011-09-22 12:59:48 +02:00
Xavier Morel 01fd5a7fb6 [FIX] onchange call for data import fields
bzr revid: xmo@openerp.com-20110922095409-xxqb0l3mirralwps
2011-09-22 11:54:09 +02:00
Xavier Morel 099b18ace6 [REM] redundant call to do_check_req_field: it's already called from on_change_check
bzr revid: xmo@openerp.com-20110922094058-yhy6re1l679fg42m
2011-09-22 11:40:58 +02:00
Xavier Morel 51dbb70b8d [FIX] mitigate horrendous performance issues inserting options in Webkit
In some cases, at least with complex-enough views, inserting many
options in a document in a row will get progressively slower.

In import, this issue is hit on trying to import partners: partners
have a humongous number of fields (direct and on their o2m), ~940,
which yields a correspondingly huge number of options in the
selection.

A basic partner export also has quite high a number of columns (~50
without exporting o2m fields), so this list of 940 options is inserted
50 times in a row (literally too, they're all in the same table row)..

While not all that fast, Firefox 5/6 has no significant issue with
this (~18ms/insertion, where an insertion is a full select with all
its options). Webkit browsers (Chrome and Safari) on the other hand
start out fair (~10ms/insertion), but get slower and slower until they
end up at 3~5 *seconds* for each insertion (3s if inserting a
DocumentFragment, 5s if inserting text via innerHTML). This means the
preview table takes up to *two minutes* to display, even the best
cases (pre-generating everything that can be and optimizing everything
I could think of) take 75 *seconds* for the insertions (the
pregeneration of a given select and its options is ~100ms, the base
template rendering is ~20ms).

rendering divs or inputs does not have this issue, I did not manage to
reduce or fix the issue directly so I replaced the options by
jQuery-ui's autocomplete widget. This is not issues-free: when tabbing
through the fields lists, when reaching the edge of the popup the
browser will automatically scroll the field back into view. However,
this is done *after* autocomplete's popup has opened, and as a result
the popup opens in the wrong place (at the popup's edge, instead of
under the now-moved field).

bzr revid: xmo@openerp.com-20110922085812-3u1esk6czraskm01
2011-09-22 10:58:12 +02:00
Xavier Morel b4722d4564 [IMP] build a sequence of buttons to initialize dialog for localization (future), simplify enabling and disabling of import button
bzr revid: xmo@openerp.com-20110921112556-0qv8h9jldlmd799a
2011-09-21 13:25:56 +02:00
Xavier Morel 519eed06a0 [IMP] guard checks as early returns to reduce nesting
bzr revid: xmo@openerp.com-20110921101436-m24gccn4isew8hwo
2011-09-21 12:14:36 +02:00
Xavier Morel 09716cac9f [IMP] style fixes
* White space between tokens
* Remove unused variables

bzr revid: xmo@openerp.com-20110921101320-7hr2nla3km3yhgfj
2011-09-21 12:13:20 +02:00
Xavier Morel db0cb54ec6 [REM] redundant code
bzr revid: xmo@openerp.com-20110921100900-e86bcmyi7fn3whiz
2011-09-21 12:09:00 +02:00
Kunal Chavda (OpenERP) 0e2d998e48 [FIX]Remove unnecessary on_click method and passing parameter.
bzr revid: kch@tinyerp.com-20110916133515-6he9cdw3cjsf24hl
2011-09-16 19:05:15 +05:30
Kunal Chavda (OpenERP) 4eb0672324 [FIX]Fixed code for select same column or imported file has same column its shows message and field will red coloration.
bzr revid: kch@tinyerp.com-20110915064753-mij2danikyv9iouh
2011-09-15 12:17:53 +05:30
Kunal Chavda (OpenERP) d7c967689a [FIX]Fixed code for removing unnecessary t-attributes and tabels.
bzr revid: kch@tinyerp.com-20110913093756-2z6g8p059lgjxpxq
2011-09-13 15:07:56 +05:30
Kunal Chavda (OpenERP) 55e3e34872 [FIX]Fixed code for problems in previous commit.
bzr revid: kch@tinyerp.com-20110912125900-flvro2f4qsllik14
2011-09-12 18:29:00 +05:30
Kunal Chavda (OpenERP) 555610e41b [FIX]Fixed code for javascript problems as par review.
bzr revid: kch@tinyerp.com-20110909114933-4f0zgiedo9dp865h
2011-09-09 17:19:33 +05:30
Xavier Morel ea82b31286 [FIX] Safari seems to have issue with loading json data in iframes, implement a jsonp-ish system to correctly handle retrieval of import test return data
bzr revid: xmo@openerp.com-20110909105307-2463mzr6micqdvbm
2011-09-09 12:53:07 +02:00
Kunal Chavda (OpenERP) ec6f367388 [FIX]Fixed code for merge related problem(instanciate a QWeb2.Engine for each session).
bzr revid: kch@tinyerp.com-20110908104856-qemlzgbc6zo5ar5k
2011-09-08 16:18:56 +05:30
Kunal Chavda (OpenERP) 4c31251a43 [FIX]Fixed code as par rename web from base and read file data problem.
bzr revid: kch@tinyerp.com-20110906130525-axb8e40gc1zya9a3
2011-09-06 18:35:25 +05:30
Kunal Chavda (OpenERP) a9446c53f9 [MERGE]Merge with trunk upto revision no 931.
bzr revid: kch@tinyerp.com-20110906125440-turixz49exf0po30
2011-09-06 18:24:40 +05:30