| Age | Commit message (Collapse) | Author |
|
Note: move test models file in models to not import tests
directory, which breaks the mute_logger of test cases
|
|
|
|
Not evaluated, move the condition to the button
Closes #12230
|
|
on heuristic
automatically try to detect type of columns from the first 10 rows of file:
If column only contains integer, only show, int, float, monetary, m2o, o2m, m2m fields in wizard
If column only contains true/false values, only show boolean fields in wizard
etc
add an advanced mode which is the same as previous import (show all fields)
Support different date format and float value with currency as well as float value with parenthesis to reprensent negative value.
|
|
task 21446
|
|
* add CSRF token as core.csrf_token
* add CSRF tokens to client-generated and/or JS-submitted forms
* remove broken "compatibility" mode of web.ajax.post
/cc @dmo-odoo I've no idea how that was supposed to work, from looking
things up all modern browsers seem to support FormData, and old IEs
which don't don't support fallbacks either and would require
submitting an actual form as fallback so...
|
|
* added intermediate ``_read_file`` step dispatching between CSV, ODS
and XLS(X) parsing
- primary dispatch on mime type, secondary on file extension:
+ OS may not provide a relevant mime type if no software locally
installed for the filetype (e.g. Windows sends excel files as
application/octet-stream if excel is not installed, and ODS files as
zip if OpenOffice/LibreOffice isn't installed)
+ applications may re-register extensions to non-standard mimetypes
breaking the dispatcher
So if the mimetype is found trust it, otherwise try with the
filename's extension (if any)
- all readers skip lines with only empty cells in their output
- ODS and XLS content are "CSVified", rows are converted to arrays of
unicode strings
* UI altered to not assume CSV files everywhere, and avoid returning
garbage preview data for non-CSV imports
Various:
* added a ``can_import`` utility function to tests.common, can be used
to skip tests if an optional Python dependency is not installed (but
one would like tests to run if the dependency is available)
* fixed datetime issue in ir_fields
* added converter for monetary fields (iso float)
* spreadsheet don't have integers, twiddling required to ensure integral
values won't be serialized as floats (breaking conversion back to
Python)
* improved some tests by asserting no error is generated (bonus: logs
the error message if there is one, rather than just saying the result
is blown)
* because some systems only provide elderly versions of
XLRD (e.g. current debian stable provides 0.9.2 from April 2013)
- keep using xldate_as_tuple instead of 0.9.3's xldate_as_datetime,
workaround is simple
- check for xlrd.xlsx in case of pre-0.8 XLRD
Authorship:
Ronak Baxi <rba@odoo.com>
Mohammed Shekha <msh@openerp.com>
Task 10792
Closes #7285
|
|
|
|
- Use the ControlPanelMixin in the Import view;
- Adapt the stylesheet to fit with both community and enterprise editions;
- Convert the css into less, use mixins and variables defined in web;
- Return the reload() deferred in the on_reverse_breadcrumb callback so that the
previous action waits to be properly reloaded before being shown.
|
|
Adapt the template according to the refactoring of the parent commit.
|
|
The ControlPanel is still instantiated by the ViewManager.
Changes details:
* web: views.js:
Code related to views header is extracted from the ViewManager
to a new Widget named ControlPanel.
Also uses the headless flag to tell the inner view not to put
its buttons (use case: kanban) or pager (use case: list) in the
header as it is hidden.
* web: view_form.js, base.xml:
Uses the headless flag at initialization of the One2ManyViewManager
widget instead of extending the ViewManager template (which doesn't
handle the header anymore).
* web: view_list.js:
Test on this.options.$pager instead of this.options.$buttons
when dealing with pager.
Note: the behavior for list view is unchanged and has a bug.
If there are more then 80 records to display, only the 80th
first are display, and as there is no pager, there is no way
to see the remaining ones. A fix for this would be to use a
light ControlPanel in One2Many views as well. With this,
there won't be duplicated .oe-'view'-buttons/sidebar/pager
anymore.
* web: view_graph.js, view_pivot.js:
Only render buttons in non-headless mode
* web_dashboard: dashboard.js:
Fix some references that were broken with ControlPanel extraction
* web_view_editor: web_view_editor.js:
Extend ControlPanel instead of ViewManager
* Changes in selector of ControlPanel elements in several addons:
* base_import
* mail
* web
|
|
closes #5478
|
|
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages
(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)
Closes #1260
|
|
|
|
* added a ``tracking_disable`` context key used by mail to completely disable
subscriptions setup and events generation during create and write operations
* added import option to optionally set up that context key and speed up
imports at the cost of not setting up subscriptions and not sending
create/update events
bzr revid: xmo@openerp.com-20140512100400-d1axjam2d0i2y0tf
|
|
mechanism of select2 and not the jquery.placeholder. Else, jq.placeholder override the select2 value, because the style option is in reality an input in dom.
bzr revid: jke@openerp.com-20140325173205-n2q0dw1kynlkint7
|
|
bzr revid: cpa@tinyerp.com-20130122133520-0m3gmxdh3ytgor0s
|
|
bzr revid: odo@openerp.com-20121221164808-kdjrtcbgma4dr3on
|
|
current file loaded
bzr revid: xmo@openerp.com-20121106084353-npwkbkg6r0wkwdrg
|
|
bzr revid: fp@tinyerp.com-20121102103624-64vd1o41qq1tez2r
|
|
bzr revid: vba@tinyerp.com-20121102063350-ce4q6cq38n84jz70
|
|
bzr revid: vba@tinyerp.com-20121102060710-x5p5yl39n5qpe7ii
|
|
bzr revid: vba@tinyerp.com-20121101124315-30vw1xc6c4ajp3i5
|
|
bzr revid: vba@tinyerp.com-20121101111004-no023s4rzpze3i50
|
|
bzr revid: vba@tinyerp.com-20121029131746-ndc4qmd76xpne9ww
|
|
bzr revid: vba@tinyerp.com-20121029092750-tc6mm0xj1eiiwrqh
|
|
bzr revid: vba@tinyerp.com-20121029091942-s97xuoorvcywiped
|
|
bzr revid: vba@tinyerp.com-20121029090141-eapggkys3ltbyquh
|
|
bzr revid: vba@tinyerp.com-20121029045026-lqvpzryidxjd9z3b
|
|
bzr revid: vba@tinyerp.com-20121025134121-jn73k1lxta13idcg
|
|
bzr revid: fva@openerp.com-20121017165646-8u35781nm8skhulh
|
|
bzr revid: xmo@openerp.com-20121010112731-flw3bkijm229mr53
|
|
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
|
|
bzr revid: xmo@openerp.com-20121008130856-fw0p92lofx7u27b2
|
|
bzr revid: xmo@openerp.com-20121004102236-auj053d38tp5fpvy
|
|
bzr revid: xmo@openerp.com-20121003121619-e6nbd78mfa5owycp
|
|
* 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
|
|
bzr revid: xmo@openerp.com-20121001142227-v1iypgjgfcq4pgo7
|
|
bzr revid: xmo@openerp.com-20121001110303-xkjjuhuxcb378cyx
|
|
action triggering is still missing
bzr revid: xmo@openerp.com-20120927074845-pb3osgymmtddglc0
|
|
bzr revid: xmo@openerp.com-20120926165052-7eq4ne62h63zbqqm
|
|
bzr revid: xmo@openerp.com-20120911063849-xqw380wglzxviojf
|
|
* 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
|
|
and generify handling of options a bit, imprive styling, and rename 'quote' to 'quoting'
bzr revid: xmo@openerp.com-20120830141226-exli9s1hh4vij6sd
|
|
Also autogen input ids so labels work correctly without collision risks, and make toggling links more flexible
bzr revid: xmo@openerp.com-20120830125232-d7g7s5oid4qivaq2
|
|
also basic CSS effects
bzr revid: xmo@openerp.com-20120814172322-1hx09qqh90umjdcq
|
|
also no error pinpointing because API does not allow for it currently
bzr revid: xmo@openerp.com-20120814141456-zh9kdbjy8wj1sxys
|
|
bzr revid: xmo@openerp.com-20120814124835-9nkqni98ie2eyt5r
|
|
displaying the preview
bzr revid: xmo@openerp.com-20120814121610-j2rpg7u5zh4h93j1
|