Commit Graph

42 Commits

Author SHA1 Message Date
Denis Ledoux 702b9c2e1b [FIX]base_import: if the error message was an except_orm or an access denied error, the error message was not displayed, only a red div without anything in it.
bzr revid: dle@openerp.com-20131128163613-e20nbr3yqvhvx4bv
2013-11-28 17:36:13 +01:00
Denis Ledoux 959b0bc720 [FIX]base_import: context was not considered while importing. Thus, default value (for instance) was not set, and that leaded to inconsistencies (Like importing supplier invoices was actually creating customer invoices
lp bug: https://launchpad.net/bugs/1086424 fixed

bzr revid: dle@openerp.com-20131031135605-ffj3tid9prw2mv8z
2013-10-31 14:56:05 +01:00
Xavier Morel e491b32e96 [FIX] base_import: list possible separators in a combo box for easier handling of tab-separated files
inserting a tab character in a text field is often difficult, as it's also used to switch between activable nodes

bzr revid: xmo@openerp.com-20130204135701-yta16mkvw2pmh6hs
2013-02-04 14:57:01 +01:00
Xavier Morel d5a0ddc99b [FIX] base_import: don't crash UI when an unexpected exception is raised during the import process
treat exceptions as 'normal' failures, convert to a regular 'error' message

bzr revid: xmo@openerp.com-20130204125214-gy0l6qlt9obkb81x
2013-02-04 13:52:14 +01:00
Fabien Meghazi 185b32d7d5 [MERGE] trunk
bzr revid: fme@openerp.com-20121107091958-f3rqu7nc585umjwq
2012-11-07 10:19:58 +01:00
Xavier Morel aabb0f38fa [FIX] base_import: only allow reloading the current file if there *is* a current file loaded
bzr revid: xmo@openerp.com-20121106084353-npwkbkg6r0wkwdrg
2012-11-06 09:43:53 +01:00
Fabien Meghazi 13be6e322f [MERGE] trunk
bzr revid: fme@openerp.com-20121105201222-ws94bdyo8l9rqjjq
2012-11-05 21:12:22 +01:00
Fabien Meghazi cbbd4dcee3 [IMP] Client actions now takes the action as argument. Use action.params for options.
bzr revid: fme@openerp.com-20121105130130-dwkn8124zc6yq933
2012-11-05 14:01:30 +01:00
Fabien Meghazi a2715888c1 [IMP] jQuery deferred API changes refactoring. Changed 'then's in 'done'/'fail' and 'pipe's in 'then'
bzr revid: fme@openerp.com-20121031103148-r1slfpl2kcnajjd3
2012-10-31 11:31:48 +01:00
Xavier Morel d6f262da37 [FIX] methods renamed in web client but not fixed in addons
bzr revid: xmo@openerp.com-20121022100800-yft9a5itqgb2ohhy
2012-10-22 12:08:00 +02:00
Fabien Meghazi 122cf4a203 [IMP] WebClient api change. ActionManager#do_action() now takes an optional 'options' dict as second argument
bzr revid: fme@openerp.com-20121017145639-xyyg9askp6xtlg6r
2012-10-17 16:56:39 +02:00
Xavier Morel 4fcdf9d108 [CHG] don't scroll to the info messages after a validation or a failed import
as asked by fp

bzr revid: xmo@openerp.com-20121012140317-3m6nh1zb7ib1om09
2012-10-12 16:03:17 +02:00
Xavier Morel 4dd9a0529e [ADD] reload file button next to the file input, as webkit browsers and MSIE don't trigger change when a file input is re-set to thee same file
Using other events (e.g. 'click') is not kosher as the event is
triggered long before the file is picked, the alternative is to use
the File API and regularly check the file in the input to see if it's
been altered (by storing a crc) and re-pushing it if the hash is
different. Of course this has other issues (risks catching the file
mid-edition...)

A third alternative is, once a file has been uploaded, to clear and
re-insert the corresponding file input. This means the file input will
*always* be empty

bzr revid: xmo@openerp.com-20121010101836-qtqmcc5n5zblgmcp
2012-10-10 12:18:36 +02:00
Xavier Morel 25f695a650 [IMP] pass restore callback to import action
so that the listview can reload itself after coming back from an
import (successful or not) and show the results of the import.

bzr revid: xmo@openerp.com-20121004133840-a2uy4s5qhpqqvp8h
2012-10-04 15:38:40 +02:00
Xavier Morel 1b17b59f50 [IMP] base_import: provide an encoding picker
bzr revid: xmo@openerp.com-20121004115024-m77q5c95i12q3qkm
2012-10-04 13:50:24 +02:00
Xavier Morel 82e849e180 [FIX] base_import: should be possible to re-validate a file after a failed import or validation
bzr revid: xmo@openerp.com-20121004083231-qyl8l58wyhb7g2c3
2012-10-04 10:32:31 +02:00
Xavier Morel 9c9d978109 [IMP] relational field 'more values' dialog list features
force display of pager and search view, make list non-selectable

bzr revid: xmo@openerp.com-20121003152444-phnn9sc9nqo1ecpn
2012-10-03 17:24:44 +02:00
Xavier Morel fa2bc11025 [IMP] formalize state transitions via an actual fsm
bzr revid: xmo@openerp.com-20121003145048-wdoo712j551jow3t
2012-10-03 16:50:48 +02:00
Xavier Morel e8a7d276bf [IMP] highlight toggling between validation and import buttons
bzr revid: xmo@openerp.com-20121003121619-e6nbd78mfa5owycp
2012-10-03 14:16:19 +02:00
Xavier Morel f6544c801f [IMP] make import into a full-scene client action
* Correctly handle back (via history_back)
* Disable buttons when no file has been loaded yet
* Highlight import when a validation has yield no message

bzr revid: xmo@openerp.com-20121003121137-xo7lu5m5y0s7gyo1
2012-10-03 14:11:37 +02:00
Xavier Morel 771fae90d7 [IMP] base_import: better warnings when the file parsing has very likely failed
bzr revid: xmo@openerp.com-20121001142227-v1iypgjgfcq4pgo7
2012-10-01 16:22:27 +02:00
Xavier Morel 89be614ea3 [ADD] base_import: info message when everything looks ok after a validation
bzr revid: xmo@openerp.com-20121001140622-v63opfo97mmxf3sr
2012-10-01 16:06:22 +02:00
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 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 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 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 246d9bd37f [IMP] rename $element to $el
bzr revid: xmo@openerp.com-20120830103245-3x8hzqquwqg27sji
2012-08-30 12:32:45 +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 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 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