summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/data_import.js
AgeCommit message (Collapse)Author
2012-02-17[fix] added openerp class to all dialogsniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20120217114357-5jeue9292eg2zoqf
2012-02-16[FIX] xmo@openerp.com-20120209090214-84d6jjr1jnf32kpi excluded too many fieldsXavier Morel
previous change would exclude all fields with @readonly, but @state can remove @readonly from fields and means fields are importable again (pretty much). Need to add that, otherwise it's almost impossible to import stuff bzr revid: xmo@openerp.com-20120216163155-wh8uory00i2qifxy
2012-02-09[CNG] don't filter out function fields from import or export, only readonly ↵Xavier Morel
fields bzr revid: xmo@openerp.com-20120209090214-84d6jjr1jnf32kpi
2012-01-10[IMP] More dataset refactoringFabien Meghazi
bzr revid: fme@openerp.com-20120110165451-pvchn668y0b1p645
2011-12-21[FIX] Reworked dialogsFabien Meghazi
lp bug: https://launchpad.net/bugs/892248 fixed lp bug: https://launchpad.net/bugs/885507 fixed bzr revid: fme@openerp.com-20111221134306-k5w0g0oih3uvhy34
2011-12-16[FIX] exclude function fields from import_compatible export and from all importsXavier Morel
bzr revid: xmo@openerp.com-20111216114941-fr6wsfabxfqf86xw
2011-12-15[IMP] mark a bunch of dialog stuff as exportable (mostly buttons, but also ↵Xavier Morel
dialog titles) bzr revid: xmo@openerp.com-20111215104031-h2xjkf0zwf8x8zjk
2011-12-01[IMP] move sections of import_result around to make flow clearerXavier Morel
bzr revid: xmo@openerp.com-20111201110140-ozkrhoxt0ug5qcnj
2011-12-01[REM] misleading (and incorrect) validation message after import failure due ↵Xavier Morel
to server error lp bug: https://launchpad.net/bugs/898547 fixed bzr revid: xmo@openerp.com-20111201110007-sy3fj347ga7pj7d8
2011-11-14[IMP] mark a bunch of strings as translatable in searchview JSXavier Morel
bzr revid: xmo@openerp.com-20111114101221-905mu3id02o3n2li
2011-10-24[FIX] automatically open options box if the file fails to parse entirelyXavier Morel
bzr revid: xmo@openerp.com-20111024142744-zeal912gqf9bvrrp
2011-10-24[ADD] open/close arrow next to import optionsXavier Morel
bzr revid: xmo@openerp.com-20111024141737-bk2rg08wvll1hgno
2011-10-24[IMP] import: only show second step once file has been uploadedXavier Morel
bzr revid: xmo@openerp.com-20111024140658-8t9csv9i6gd30luj
2011-10-24[ADD] dropdown arrow next to import autocompletesXavier Morel
bzr revid: xmo@openerp.com-20111024135521-aikh791r9j94moal
2011-10-19[FIX] failure to auto-match 'inner' fields of o2m records when importingXavier Morel
lp bug: https://launchpad.net/bugs/878005 fixed bzr revid: xmo@openerp.com-20111019134936-xfo9zt1ivgocbffr
2011-10-19[FIX] always add external ids to the list of importable fieldsXavier Morel
lp bug: https://launchpad.net/bugs/878005 fixed bzr revid: xmo@openerp.com-20111019103822-lx0gldsmxbqb87dr
2011-10-18[FIX] columns with default values should not be marked as required during importXavier Morel
bzr revid: xmo@openerp.com-20111018102108-2c1uixgbeb3t6wkx
2011-10-17[FIX] import :- change variable name.Yogesh (OpenERP)
bzr revid: ysa@tinyerp.com-20111017131849-u034vkz20cw8e31t
2011-10-17[IMP] Import :- improve code.Yogesh (OpenERP)
bzr revid: ysa@tinyerp.com-20111017061602-6sv4m5ew70by57yx
2011-10-12[FIX] import :- default value set on required field then remove this field ↵Yogesh (OpenERP)
on required fields list. lp bug: https://launchpad.net/bugs/871625 fixed bzr revid: ysa@tinyerp.com-20111012080540-1m6x6npy7e0jaoif
2011-09-26[ADD] basic auto-matching of imported file columns to model fieldsXavier Morel
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[FIX] prevent setting a field name which does not exist in the listXavier Morel
bzr revid: xmo@openerp.com-20110926093024-et5kvpvvq1vm811h
2011-09-23[FIX] moved a self around so import window did not close correctlyXavier Morel
bzr revid: xmo@openerp.com-20110923130943-293wxucafwjloxwh
2011-09-23[IMP] fixup field names since we only ever export xmlids anymoreXavier Morel
might have to change that, or something bzr revid: xmo@openerp.com-20110923124634-sk9ka293ugc159gu
2011-09-23[IMP] move more import logic to javascriptXavier Morel
bzr revid: xmo@openerp.com-20110923122202-hnp6o1ybwgugive4
2011-09-23[REM] selector on an element which does not existXavier Morel
bzr revid: xmo@openerp.com-20110923110605-vw82lm018q6b2grt
2011-09-23[IMP] handle lines to skip in import previewXavier Morel
bzr revid: xmo@openerp.com-20110923095609-ogxc6q3wnd0tez8v
2011-09-23[IMP] handle switch indicating whether the CSV file being imported has headersXavier Morel
bzr revid: xmo@openerp.com-20110923094500-0jn0tb3fgix9j8wg
2011-09-23[IMP] split import check result in two different templates, wait before ↵Xavier Morel
everything's ready to setup autocompletes and check required fields & al bzr revid: xmo@openerp.com-20110923092346-007j09xf5wfzq9zo
2011-09-23[IMP] move fetching of fields for import to javascript. Also extraction of ↵Xavier Morel
required fields bzr revid: xmo@openerp.com-20110923083341-xa3sg2t053zonlsm
2011-09-22[REM] table of no use whatsoeverXavier Morel
bzr revid: xmo@openerp.com-20110922155751-rkch0vpmhpolihxa
2011-09-22[IMP] extract duplicate fields discovery routine to its own method, to make ↵Xavier Morel
the validation process clearer bzr revid: xmo@openerp.com-20110922121327-zqenx9bisr8pe4kd
2011-09-22[FIX] don't declare the file is importable when there are duplicate columns ↵Xavier Morel
selected bzr revid: xmo@openerp.com-20110922120810-2fcmntd4w6yh9zvy
2011-09-22[FIX] required fields check, maybeXavier Morel
bzr revid: xmo@openerp.com-20110922120328-h9eh9gl6wf28xbzd
2011-09-22[IMP] attempt to slighly improve duplicate field match handling in importXavier Morel
bzr revid: xmo@openerp.com-20110922105948-oms4h0t4uyl0qnm6
2011-09-22[FIX] onchange call for data import fieldsXavier Morel
bzr revid: xmo@openerp.com-20110922095409-xxqb0l3mirralwps
2011-09-22[REM] redundant call to do_check_req_field: it's already called from ↵Xavier Morel
on_change_check bzr revid: xmo@openerp.com-20110922094058-yhy6re1l679fg42m
2011-09-22[FIX] mitigate horrendous performance issues inserting options in WebkitXavier Morel
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-21[IMP] build a sequence of buttons to initialize dialog for localization ↵Xavier Morel
(future), simplify enabling and disabling of import button bzr revid: xmo@openerp.com-20110921112556-0qv8h9jldlmd799a
2011-09-21[IMP] guard checks as early returns to reduce nestingXavier Morel
bzr revid: xmo@openerp.com-20110921101436-m24gccn4isew8hwo
2011-09-21[IMP] style fixesXavier Morel
* White space between tokens * Remove unused variables bzr revid: xmo@openerp.com-20110921101320-7hr2nla3km3yhgfj
2011-09-21[REM] redundant codeXavier Morel
bzr revid: xmo@openerp.com-20110921100900-e86bcmyi7fn3whiz
2011-09-16[FIX]Remove unnecessary on_click method and passing parameter.Kunal Chavda (OpenERP)
bzr revid: kch@tinyerp.com-20110916133515-6he9cdw3cjsf24hl
2011-09-15[FIX]Fixed code for select same column or imported file has same column its ↵Kunal Chavda (OpenERP)
shows message and field will red coloration. bzr revid: kch@tinyerp.com-20110915064753-mij2danikyv9iouh
2011-09-13[FIX]Fixed code for removing unnecessary t-attributes and tabels.Kunal Chavda (OpenERP)
bzr revid: kch@tinyerp.com-20110913093756-2z6g8p059lgjxpxq
2011-09-12[FIX]Fixed code for problems in previous commit.Kunal Chavda (OpenERP)
bzr revid: kch@tinyerp.com-20110912125900-flvro2f4qsllik14
2011-09-09[FIX]Fixed code for javascript problems as par review.Kunal Chavda (OpenERP)
bzr revid: kch@tinyerp.com-20110909114933-4f0zgiedo9dp865h
2011-09-09[FIX] Safari seems to have issue with loading json data in iframes, ↵Xavier Morel
implement a jsonp-ish system to correctly handle retrieval of import test return data bzr revid: xmo@openerp.com-20110909105307-2463mzr6micqdvbm
2011-09-08[FIX]Fixed code for merge related problem(instanciate a QWeb2.Engine for ↵Kunal Chavda (OpenERP)
each session). bzr revid: kch@tinyerp.com-20110908104856-qemlzgbc6zo5ar5k
2011-09-06[FIX]Fixed code as par rename web from base and read file data problem.Kunal Chavda (OpenERP)
bzr revid: kch@tinyerp.com-20110906130525-axb8e40gc1zya9a3