Commit Graph

64 Commits

Author SHA1 Message Date
niv-openerp 5e338c591a [IMP] made a whole-application replace of $element by $el
bzr revid: nicolas.vanhoren@openerp.com-20120824182707-vt91ef40ieeudwyw
2012-08-24 20:27:07 +02:00
niv-openerp 2c57c15491 [IMP] Mass rename \t to 4 spaces
bzr revid: nicolas.vanhoren@openerp.com-20120802144623-ykl5te005ytnv584
2012-08-02 16:46:23 +02:00
Fabien Meghazi ce7fb5bb37 [CHG] Ashes to ashes, dashes to underscores.
bzr revid: fme@openerp.com-20120627141249-o10e2htxqtio72l7
2012-06-27 16:12:49 +02:00
Xavier Morel 54a8f9e193 [MERGE] 6.1 changes and trunk
bzr revid: xmo@openerp.com-20120625135215-az1927llmk0vw655
2012-06-25 15:52:15 +02:00
Olivier Dony 51292dca89 [MERGE] OPW 574895: fix incorrect matching of column headers when importing CSV files
- required fields may sometimes be provided by alternative columns,
  and all the alternatives are therefore not required (e.g. for
  a m2o the CSV can provide m2o or m2o/id columns)
- when fields share the same label, precedence when matching
  column headers should be given to the field with the exact
  same name, rather than just the first one encountered

bzr revid: odo@openerp.com-20120606174043-f1nmkad3p17mccyy
2012-06-06 19:40:43 +02:00
Xavier ALT 3fa52c12b7 [FIX] web: data import: correctly handle 'required' many2one - user can provided any of base fieldname or with the '/id'
bzr revid: xal@openerp.com-20120530101715-oe86b3vk6qynp29e
2012-05-30 12:17:15 +02:00
Xavier ALT 6700a95d79 [FIX] web: data import: fields matching have to be done first on exactfieldname, then only on string
bzr revid: xal@openerp.com-20120530101608-8al6jw332oz0v2c0
2012-05-30 12:16:08 +02:00
Olivier Dony 6379e7899c [FIX] data_import: allow importing m2o via name_search() on top of their XML ID
We do default to exporting the XML ID, but there are
many cases where completely new data needs to be
imported and there is no XML ID available to do so.
In that case allowing name_search() to be used as in
6.0 is a life-saver. This patch simply makes the
m2o field itself visible during import, so users can
use it in their CSV file or manually select it.

Some trivial examples:
- you need to import 2000 new leads with their countries,
  obviously you can't guess that base.be should be used
  for country Belgium
- you need to update 2000 unassigned leads in the system
  and assign them to some of the salemen... but you don't
  have their XML IDs and even if you had, the match is
  quite hard to do.

bzr revid: odo@openerp.com-20120525070859-y4q3bnamvag2pzcq
2012-05-25 09:08:59 +02:00
msh-openerp 9d95952436 [FIX]Refixed the translation issue in import.
bzr revid: msh@tinyerp.com-20120516120946-bxroqa9tiwhqxbpo
2012-05-16 17:39:46 +05:30
niv-openerp d5ae315409 [imp] refactored data_import.js
bzr revid: nicolas.vanhoren@openerp.com-20120417115726-5zwzwyp1lzdjxwh7
2012-04-17 13:57:26 +02:00
msh-openerp f18695615c [FIX]Fixed the issue of translation in data_import.
bzr revid: msh@tinyerp.com-20120404085243-69cx9zr4915eb6kz
2012-04-04 14:22:43 +05:30
niv-openerp 75d39c7f6a [imp] renammed stop()
bzr revid: nicolas.vanhoren@openerp.com-20120221162912-zheko30qoh84hcoq
2012-02-21 17:29:12 +01:00
niv-openerp 8384876ef0 [imp] renamed widget_parent to getParent()
bzr revid: nicolas.vanhoren@openerp.com-20120221153023-cqs66neaddtuf7km
2012-02-21 16:30:23 +01:00
niv-openerp 0d061d6c77 [fix] added openerp class to all dialogs
bzr revid: nicolas.vanhoren@openerp.com-20120217114357-5jeue9292eg2zoqf
2012-02-17 12:43:57 +01:00
Xavier Morel 56562531ab [FIX] xmo@openerp.com-20120209090214-84d6jjr1jnf32kpi excluded too many fields
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-16 17:31:55 +01:00
Xavier Morel c120ee72a6 [CNG] don't filter out function fields from import or export, only readonly fields
bzr revid: xmo@openerp.com-20120209090214-84d6jjr1jnf32kpi
2012-02-09 10:02:14 +01:00
Fabien Meghazi e9ca86dd63 [IMP] More dataset refactoring
bzr revid: fme@openerp.com-20120110165451-pvchn668y0b1p645
2012-01-10 17:54:51 +01:00
Fabien Meghazi 41cd88bfad [FIX] Reworked dialogs
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-21 14:43:06 +01:00
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