Commit Graph

184 Commits

Author SHA1 Message Date
Olivier Dony 771b216118 [I18N] Update translation templates in preparation for 7.0 release
bzr revid: odo@openerp.com-20121124030804-9dvr1qwec830p8fc
2012-11-24 04:08:04 +01:00
Vo Minh Thu 071de66193 [FIX] base_import: added security csv file in __openerp__.py.
bzr revid: vmt@openerp.com-20121115163756-vfocdshvwo524dya
2012-11-15 17:37:56 +01:00
Vo Minh Thu c20e2afda1 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121114125900-egz3k82n98kwz47x
2012-11-14 13:59:00 +01:00
Fabien Meghazi 185b32d7d5 [MERGE] trunk
bzr revid: fme@openerp.com-20121107091958-f3rqu7nc585umjwq
2012-11-07 10:19:58 +01:00
Vo Minh Thu abbe3ac1de [MERGE] removed a few warnings.
bzr revid: vmt@openerp.com-20121106150431-rem9us13kevan8y0
2012-11-06 16:04:31 +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 22ad7a70f7 [MERGE] trunk
bzr revid: fme@openerp.com-20121105084838-gwc7xb19f7131vbi
2012-11-05 09:48:38 +01:00
Xavier Morel 956bfd007d [REV] garbage
bzr revid: xmo@openerp.com-20121102140127-69e3ae5vca1ni46r
2012-11-02 15:01:27 +01:00
Fabien Pinckaers d658b2a6e5 [IMP] Import wizard, better explanations
bzr revid: fp@tinyerp.com-20121102103624-64vd1o41qq1tez2r
2012-11-02 11:36:24 +01:00
Vijaykumar Baladaniya e0bd5017e9 Add a sql file and their link.
bzr revid: vba@tinyerp.com-20121102063350-ce4q6cq38n84jz70
2012-11-02 12:03:50 +05:30
Vijaykumar Baladaniya c8a160f251 [IMP]Improve content.
bzr revid: vba@tinyerp.com-20121102060710-x5p5yl39n5qpe7ii
2012-11-02 11:37:10 +05:30
Vijaykumar Baladaniya 3a5334672f Add a proper file.
bzr revid: vba@tinyerp.com-20121101124315-30vw1xc6c4ajp3i5
2012-11-01 18:13:15 +05:30
Vijaykumar Baladaniya a45cdc652b [IMP]Improve Code and add a csv file.
bzr revid: vba@tinyerp.com-20121101111004-no023s4rzpze3i50
2012-11-01 16:40:04 +05:30
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
Vijaykumar Baladaniya deaae5dec3 [IMP]Give a proper message When a validate or import is refused due to a problem.
bzr revid: vba@tinyerp.com-20121030091231-ty2edtpcjyaxqzzx
2012-10-30 14:42:31 +05:30
Vijaykumar Baladaniya b37dc17a3c [IMP]Import functionality in kanban views. and add a Frequently Asked Questions.
bzr revid: vba@tinyerp.com-20121029131746-ndc4qmd76xpne9ww
2012-10-29 18:47:46 +05:30
Vijaykumar Baladaniya 92133099cc [IMP]View Improvement
bzr revid: vba@tinyerp.com-20121029092750-tc6mm0xj1eiiwrqh
2012-10-29 14:57:50 +05:30
Vijaykumar Baladaniya 5ef878cd7d [MERGE]Merge with latest.
bzr revid: vba@tinyerp.com-20121029091942-s97xuoorvcywiped
2012-10-29 14:49:42 +05:30
Vijaykumar Baladaniya f22387e8c0 [IMP]Improve view.
bzr revid: vba@tinyerp.com-20121029090141-eapggkys3ltbyquh
2012-10-29 14:31:41 +05:30
Vijaykumar Baladaniya e945c2d6b3 [IMP]put a tooltip on the refresh button.
bzr revid: vba@tinyerp.com-20121029045026-lqvpzryidxjd9z3b
2012-10-29 10:20:26 +05:30
Vijaykumar Baladaniya 61986b3479 [IMP]View improvement.
bzr revid: vba@tinyerp.com-20121025134121-jn73k1lxta13idcg
2012-10-25 19:11:21 +05:30
Xavier Morel b2e32b21fa [FIX] base_import: dummy test file
bzr revid: xmo@openerp.com-20121024105612-84fb2gav0jpp2hkc
2012-10-24 12:56:12 +02:00
Fabien Pinckaers 0445d740a7 [IMP] CSS import wizard
bzr revid: fp@tinyerp.com-20121024102915-dtfy3dc4ll0ewf90
2012-10-24 12:29:15 +02: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
Jigar Amin 2ca6464e66 [MERGE] Sync with trunk
bzr revid: jam@tinyerp.com-20121018133243-jybuqt2ub9wcm9h7
2012-10-18 19:02:43 +05:30
Frédéric van der Essen 5469854d17 [MERGE] from trunk
bzr revid: fva@openerp.com-20121018081536-r0xfo12gttw0loab
2012-10-18 10:15:36 +02:00
Frédéric van der Essen a9d7f9ea60 [IMP] css: improved csv import css
bzr revid: fva@openerp.com-20121017165646-8u35781nm8skhulh
2012-10-17 18:56:46 +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
Jigar Amin 40e2c69f66 [MERGE] Sync with trunk
bzr revid: jam@tinyerp.com-20121017043824-pcijflp073el02ih
2012-10-17 10:08:24 +05:30
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
Twinkle Christian (OpenERP) 20e0731484 [MERGE]Merge with latest trunk-fix-warning brnach
bzr revid: tch@tinyerp.com-20121011103140-mg5heyn3c7l2kk49
2012-10-11 16:01:40 +05:30
Antony Lesuisse 84a7523a63 [IMP] remove standalone web client, fix imports
bzr revid: al@openerp.com-20121010204617-ah29rz616xo7i2dr
2012-10-10 22:46:17 +02:00
Xavier Morel b70d0dab52 [FIX] cases where options dict is decoded as unicode strings on windows: csv.reader kwargs *must* be strings
bzr revid: xmo@openerp.com-20121010123827-x76udyurqzgnqebg
2012-10-10 14:38:27 +02:00
Xavier Morel f8a29989c8 [IMP] base_import: simplify styling of looks button
bzr revid: xmo@openerp.com-20121010112731-flw3bkijm229mr53
2012-10-10 13:27:31 +02:00
Twinkle Christian (OpenERP) 6acb393583 [FIX]Make .csv file for base_import module
bzr revid: tch@tinyerp.com-20121010111037-y4ft0bvr0lysvbuo
2012-10-10 16:40:37 +05:30
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 775fe69fc1 [IMP] base_import: always open CSV link in new window
bzr revid: xmo@openerp.com-20121008130856-fw0p92lofx7u27b2
2012-10-08 15:08:56 +02:00
Xavier Morel a3f1a64c45 [IMP] make base_import auto-install
bzr revid: xmo@openerp.com-20121005083440-xenjci6qag7bkk3n
2012-10-05 10:34:40 +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 8f3db5bcf1 [IMP] move file format options from below preview table to below file field
bzr revid: xmo@openerp.com-20121004102236-auj053d38tp5fpvy
2012-10-04 12:22:36 +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 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