| Age | Commit message (Collapse) | Author |
|
The commit 1ba4fbe640cf22abe did not match the specs of the task, but
was merged anyway. Reverting the commit, and check by default so the
user is not confused with missing fields.
opw-1824074
|
|
Was still pointing to old links
Closes #21590
|
|
Makes possible to choose `defer_parent_store_computation` in UI.
Closes #21320
|
|
- Rename "Validate" button to "Test Import"
- unmatched columns are marked in red
- better column matching (show suggestions of the char field even if the imported values are of int type)
PR #16881, close task 32894
|
|
Applies commit odoo/odoo@dba53fb117d678bf277b55c5a5df83fe44e252fa in the new views.
The import feature was only available in List views before this
commit.
|
|
This commit introduce a full redesign of all JS views. We started
basically from scratch. The goal was to unify all the various views
under a common framework, to make them testable, to make then usable in
different conditions (in studio, or in the frontend), and to make our
lives easier.
Some important points are:
- we introduced new coding guidelines (camelCase, 80 chars width, ...)
- we have a brand new testing framework (still QUnit based)
- kanban view moved to the web addon
- calendar view (formerly web_calender) moved to web as well
- the tree view was removed
- all new code should be documented
We hope that this code is the start of a new era for the Odoo web
client, we want to have a high quality codebase, well documented, well
tested, well designed.
Work done by the framework team: mostly aab, ged, chm, dmo, qsm
|
|
XLSM are parsed as MS Office Excel files using xlrd
Closes #14137
|
|
normal mode: Importing only regular/basic fields from source file
advanced mode: Importing any related fields from source file(i.e. if detected pattern in header like '<relational_fieldname>/<fname>')
- Rename following checkbox "Show all fields for completion (advanced)" in "Show fields of relation fields (advanced)"
- If the import file contains a column with a field of a relation field, show the column label in the preview, even if "Show fields of relation fields (advanced)" is not checked > to make it less confusing when importing advanced files (e.g. products with attributes)
|
|
This commit closes #13903
|
|
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
|