Commit Graph

184 Commits

Author SHA1 Message Date
Xavier Morel a7a8104623 [IMP] base_import: typo in field name for row number offset
bzr revid: xmo@openerp.com-20121001135217-0ao29ldft17d52ur
2012-10-01 15:52:17 +02:00
Xavier Morel da8ab1cc13 [FIX] link [CSV] to wikipedia
bzr revid: xmo@openerp.com-20121001110303-xkjjuhuxcb378cyx
2012-10-01 13:03:03 +02:00
Xavier Morel abf0579a98 [IMP] Invert order of buttons in import dialog, add 'or cancel' link
bzr revid: xmo@openerp.com-20121001105235-0d954cxt9y80q89w
2012-10-01 12:52:35 +02:00
Xavier Morel 4787939773 [FIX] correctly transform 'get all possible values' action links to display list views as list views
bzr revid: xmo@openerp.com-20120927094950-pwlgv2kt2a0jz8ji
2012-09-27 11:49:50 +02:00
Xavier Morel 4d7576393a [ADD] unstyled and incomplete handling of @moreinfo
action triggering is still missing

bzr revid: xmo@openerp.com-20120927074845-pb3osgymmtddglc0
2012-09-27 09:48:45 +02:00
Xavier Morel 27aeae974a [IMP] warning and error reporting during import
bzr revid: xmo@openerp.com-20120926165052-7eq4ne62h63zbqqm
2012-09-26 18:50:52 +02:00
Xavier Morel f6f37632ce [IMP] errors display, dryrun management (add button)
bzr revid: xmo@openerp.com-20120926135013-rkbvxluu6tqz9a1l
2012-09-26 15:50:13 +02:00
Xavier Morel fd5d4e5dd3 [IMP] don't display deprecated fields in import window
bzr revid: xmo@openerp.com-20120926114235-iqkmi23yk2v1hq7w
2012-09-26 13:42:35 +02:00
Xavier Morel 627bb128e0 [IMP] adapt base_import to using Model.load instead of Model.import_data
bzr revid: xmo@openerp.com-20120926082530-krhladsrn9mzs3lx
2012-09-26 10:25:30 +02:00
Xavier Morel 9b0f10af12 [FIX] base_import: just loading module should not require unittest2. Reported by M.Taylor
bzr revid: xmo@openerp.com-20120911132446-u1yd48tsfd7km6hn
2012-09-11 15:24:46 +02:00
Xavier Morel e401ca9d69 [IMP] re-introduce Import button/link when base_import is installed
bzr revid: xmo@openerp.com-20120911063849-xqw380wglzxviojf
2012-09-11 08:38:49 +02:00
Xavier Morel 34d15bb862 [IMP] base_import: lexicographically sort fields in field-matching UI
bzr revid: xmo@openerp.com-20120910072032-wbgafg3z45z4l29a
2012-09-10 09:20:32 +02:00
Xavier Morel ad670b6887 [FIX] field-selection UI in import table: replace jquery-autocomplete by select2
* jQuery autocomplete requires complex hacks to work out and look
  select-ish
* select2 is more straightforward to use for people
  expecting <select> as it's styled similarly to a (non-standard)
  select
* select2 includes built-in support for groups, no need to hack it via
  interspersed fake options
* select2 provides a nice [x] button to remove the current choice
  without having to e.g. manually remove the content of the input

Why select2 instead of Chosen? Because Chosen isn't really setup to
work from array data, it wants selects serialized in the DOM, and
while the webkit bug I'd identified previously (see web client
revid:xmo@openerp.com-20110922085812-3u1esk6czraskm01) seems fixed in
the very latest webkits, it's still present in e.g. Safari 5.1 which
I'm using. So there.

And chosen's APIDoc is almost as bad as OpenERP's.

bzr revid: xmo@openerp.com-20120906103516-h94e6hd76w41bmyx
2012-09-06 12:35:16 +02:00
Xavier Morel 38b913a3eb [FIX] comment out validation dryrun import: not for phase 1
bzr revid: xmo@openerp.com-20120903142248-v5oti2gltew9f674
2012-09-03 16:22:48 +02:00
Xavier Morel 5f89461c60 [IMP] add validation call after each field matching (slooooooowwwwww)
bzr revid: xmo@openerp.com-20120903142110-0mziyxhcku22gbm8
2012-09-03 16:21:10 +02:00
Xavier Morel 2918133ee5 [IMP] catch-and-return all errors in parse_preview
bzr revid: xmo@openerp.com-20120903140022-osfkgk4l6r2hj42j
2012-09-03 16:00:22 +02:00
Xavier Morel a4f40c0ce5 [ADD] autocompletion sections, partitioning
bzr revid: xmo@openerp.com-20120903112418-nhgmb6fs50ju0cfz
2012-09-03 13:24:18 +02:00
Xavier Morel 7c599159a5 [ADD] match display and field autocompletion UI
bzr revid: xmo@openerp.com-20120903091211-0r0jwe786olxg8ll
2012-09-03 11:12:11 +02:00
Xavier Morel cdb6869809 [IMP] add encoding csv option
and generify handling of options a bit, imprive styling, and rename 'quote' to 'quoting'

bzr revid: xmo@openerp.com-20120830141226-exli9s1hh4vij6sd
2012-08-30 16:12:26 +02:00
Xavier Morel 302cabfccb [IMP] Make CSV options (quoting and separator) customizable
Also autogen input ids so labels work correctly without collision risks, and make toggling links more flexible

bzr revid: xmo@openerp.com-20120830125232-d7g7s5oid4qivaq2
2012-08-30 14:52:32 +02:00
Xavier Morel ca6323607e [IMP] make import objects live for 12 hours when transient cron is active
bzr revid: xmo@openerp.com-20120830110603-8stvh3vpsn4vzr4f
2012-08-30 13:06:03 +02:00
Xavier Morel b1407fc769 [FIX] field for file mime type is file_type, not file_mime
bzr revid: xmo@openerp.com-20120830103928-rjtrdvkzrybfpi0c
2012-08-30 12:39:28 +02:00
Xavier Morel 246d9bd37f [IMP] rename $element to $el
bzr revid: xmo@openerp.com-20120830103245-3x8hzqquwqg27sji
2012-08-30 12:32:45 +02:00
Xavier Morel 7006b17af3 [IMP] un-b64 the import file field, use raw binary
bzr revid: xmo@openerp.com-20120830103215-trv5cjg9jvj8ano1
2012-08-30 12:32:15 +02:00
Xavier Morel 7f319f5a37 [ADD] blahblahblahblah
also basic CSS effects

bzr revid: xmo@openerp.com-20120814172322-1hx09qqh90umjdcq
2012-08-14 19:23:22 +02:00
Xavier Morel 34f9664377 [FIX] no field selected for import by the user
bzr revid: xmo@openerp.com-20120814142933-myng67f2cily6vfg
2012-08-14 16:29:33 +02:00
Xavier Morel 8fa23a9518 [ADD] actual importing, no fields matching yet
also no error pinpointing because API does not allow for it currently

bzr revid: xmo@openerp.com-20120814141456-zh9kdbjy8wj1sxys
2012-08-14 16:14:56 +02:00
Xavier Morel 323b979146 [ADD] error reporting to user during preview
bzr revid: xmo@openerp.com-20120814124835-9nkqni98ie2eyt5r
2012-08-14 14:48:35 +02:00
Xavier Morel aec461651e [FIX] NUL byte in a file leads csv.reader to raise csv.Error
bzr revid: xmo@openerp.com-20120814123112-p4iio7fl561ronln
2012-08-14 14:31:12 +02:00
Xavier Morel b8f93a7bc6 [ADD] base import logic: implement creating an import, uploading a file and displaying the preview
bzr revid: xmo@openerp.com-20120814121610-j2rpg7u5zh4h93j1
2012-08-14 14:16:10 +02:00
Xavier Morel 84ea769476 [IMP] add information to _match_headers
bzr revid: xmo@openerp.com-20120814120737-0zuxqyjhnnx1aye3
2012-08-14 14:07:37 +02:00
Xavier Morel de09433413 [ADD] feeding of import data into import_data
bzr revid: xmo@openerp.com-20120814093813-ql1uq1kb2766db0e
2012-08-14 11:38:13 +02:00
Xavier Morel 45d5003dd6 [ADD] matching and parsing of CSV, preview production
bzr revid: xmo@openerp.com-20120813134219-ijo7d2kwn82qs4tm
2012-08-13 15:42:19 +02:00
Xavier Morel b34767381b [ADD] fields fetching and filtering method for import
bzr revid: xmo@openerp.com-20120810073513-zidmkuw6yjhtuwpj
2012-08-10 09:35:13 +02:00