Commit Graph
6504 Commits
Author SHA1 Message Date
Aaron Bohy 3bb35d68b6 [FIX] web: x2many fields: set_value(): missing return
The set_value() function of x2many fields is asynchronous. When a record is
loaded, the invisibility changers (IC) are evaluated once set_value() has been
performed on every fields. As set_value() didn't return its deferred, the IC where
evaluated with wrong values. It produced in particular the following bug:

Go to Customers > Agrolait (the Contacts tab is displayed), switch to next record,
which is the first contact of Agrolait. The Contacts tab is still displayed,
whereas it should not (the invisible condition being is_company == false and
child_ids == [], i.e. there is no contact).

Also call this._super() in set_value() of AbstractManyField instead of
duplicating the function of its parent.
2015-07-02 14:04:42 +02:00
qsm-odoo 93013eca6d [FIX] ProgressBar
Leaving edit mode was impossible if the value was not changed
+ Remove use of PropertiesMixin
2015-07-01 15:35:19 +02:00
Aaron Bohy c5f3debc32 [FIX] web: FormViewDialog: multi select option
Before this rev., the multi_select option wasn't enabled even by setting
disable_multiple_selection to false in the options, when the res_id key
wasn't defined in options (null != undefined). It was the case for every
X2Many views, except for the Many2ManyKanban view as we explicitely set
the disable_multiple_selection to false AND res_id to null. However, all
X2Many views should enable this option.
2015-07-01 15:27:53 +02:00
Aaron Bohy b601ec66ca [IMP] web,mail: use of Modals to confirm changes discard
instead of the browser confirm dialogs, for the sake of uniformity.
2015-07-01 11:36:32 +02:00
Aaron Bohy 3a511aaa70 [IMP] web,web_kanban: Dialog.confirm api
takes now an object of options for the Dialog, containing two possible
callbacks (for confirm and cancel).
2015-07-01 11:36:31 +02:00
Aaron Bohy d6afe624eb [REVERT] web,point_of_sale: cordova integration
introduced by forwardport: a304194936
initial commit in 8.0: 19eda68547
2015-06-30 15:46:08 +02:00
Aaron Bohy d3398b4996 [REF] web,pos: font dir renamed for enterprise compatibility 2015-06-30 15:46:08 +02:00
Aaron Bohy 9d121cd9ec [FIX] web: One2ManyKanbanView: reload view on create
Before this rev., the One2ManyKanbanView wasn't reloaded after creation of a
new record (on dialog close).
2015-06-26 13:48:37 +02:00
Aaron Bohy 230af35154 [IMP] web: ViewManager for One2Many and Many2Many fields
This rev. generalizes the notions of FieldOne2Many to FieldX2Many and of One2ManyViewManager
to X2ManyViewManager. The same logic is now applied both for One2Many and Many2Many fields.
This allows Many2Many list and kanban views to have a pager, as the pager is instanciated
by the view, on demand of the ViewManager.
2015-06-25 15:44:42 +02:00
Aaron Bohy 5490aad0c9 [FIX] web, sales_team: many2many kanban: cards style + clickable
Apply the same style to many2many form_field as for one2many ones.
Make the sales_team cards for team members clickable.
Add "position: relative" to sales_team cards for the cross to be correctly
positionned. Inline style is not the right way to do it, but for the sake
of consistency, it is ok. A better commit should come to remove this inline
style from all x2many kanban templates.
2015-06-25 15:44:42 +02:00
Christophe Simonis a304194936 [MERGE] forward port of branch saas-6 up to 81b5c60 2015-06-25 00:26:31 +02:00
Géry Debongnie 07efacb578 [REF] web_kanban: remove many2manyKanbanView
this is not necessary anymore, with the new kanban view.  It also
paves the way for further changes (soon to be done): using a viewmanager
to instantiate the many2many kanban view
2015-06-24 16:08:19 +02:00
Christophe Simonis 704a11ddee [MERGE] forward port of branch 8.0 up to b8bf1e0 2015-06-24 12:45:14 +02:00
Christophe Simonis b8bf1e0905 [MERGE] forward port of branch saas-3 up to ea659cb 2015-06-24 12:37:08 +02:00
Christophe Simonis ea659cbd87 [MERGE] forward port of branch 7.0 up to 16a545b 2015-06-24 12:34:03 +02:00
Christophe Matthieu beca8fb36d [FIX] web: One2ManyListView list editable: also reload the focused inline form when the list is reloaded 2015-06-24 11:45:23 +02:00
Jean-Baptiste Quenot 3071ef16c7 [ADD] web: sorting in ir_filters
Add a parameter sort on the ir.filters to maintain the order of searching when
reloading a filter.
Fixes #6867
2015-06-23 16:00:07 +02:00
Olivier Dony a180cbddf7 [MERGE] Forward-port 8.0 up to 9b1aa53f29 2015-06-23 15:36:16 +02:00
Nicolas Lempereur 1942522969 [FIX] base: update File Content for binary field
To distinguish two ir.attachment 'File Content', we base it on the file
size (this I imagine is for efficiency).

This is done by setting bin_size in the context. Doing this, the
returned db_datas field will be the file size of the converted to base64
content (if no filestore).

But this size is returned in string format, so "get_nice_size" (in
openerp/osv/fields.py) which gets this size calculates the length of the
string. e.g: if the size is '2142' get_nice_size will return 4.

This fix solves this by converting the string to an integer, thus
unifying it with the filestore case (where we use os.path.getsize which
return an integer).

Also, the field presenting the issue (FieldBinaryFile) has been changed
so it is always updated even if the size is the same (as it was already
done by 3632949 for FieldBinaryImage widget).

closes #7223
opw-643071
2015-06-23 15:20:33 +02:00
Géry Debongnie c104aae258 [FIX] web: patch community client to use css
this change allows every addons to convert their css to use the
o_web_client class, which works in enterprise edition.
2015-06-23 10:08:47 +02:00
Aaron Bohy 68b61db3a2 [IMP] web: form_view: stat buttons hover style 2015-06-23 09:02:05 +02:00
Nicolas Martinelli ac4849f9ca [ADD] web: prevent the propagation of context keys containing prefix show_
This decision comes from the following bug:
- Go to Sales -> Quotations, and open any existing quotation in form view (the
  partner must have an address defined)
- Click on the partner
- Click on the stat button "Claims"
- You notice that the address of the partner is included in the search

This is due to the context property show_address which is set to 1 when a
quotation is open. Therefore, it is necessary to filter out this keyword.

Since the prefix "show_" is used for only few context variables, it was decided
to define this pattern as a standard pattern to filter out.

opw-642893
2015-06-22 14:06:11 +02:00
Cedric Snauwaert d017827c1a [FIX] account: use correct currency symbol for bank_statement_line amount 2015-06-19 16:06:10 +02:00
qsm-odoo 2a40c195a5 [FIX] Many2ManyTags and web_tests
Adapt web_tests to the new many2manytag included in the tour widget_x2many
2015-06-19 13:42:15 +02:00
qsm-odoo 3abe93715a [IMP] New many2manytags field
Many2manytag widget is specialized by calendar module so it had to be
common for community/enterprise
2015-06-19 09:46:38 +02:00
Christophe Simonis 13468c271f [MERGE] forward port of branch 8.0 up to ed3065e 2015-06-18 19:41:31 +02:00
Aaron Bohy d37495ab0d [FIX] web: pager edition style 2015-06-18 14:32:13 +02:00
Aaron Bohy 5f72fb8e10 [IMP] web: pager: editable feature + documentation
Pager's state can now be edited (mainly to change the limit,
but the range of values as well).
2015-06-18 13:51:56 +02:00
Martin Geubelle f18caa435c [IMP] web: remove the strange color on links in the view-manager 2015-06-18 11:10:31 +02:00
qsm-odoo 17893c60bc [IMP] Add design compatibility for templates
Add compatibility rules for the templates to look good on both
enterprise and community editions
2015-06-18 10:57:52 +02:00
qsm-odoo 8e5332a27e [FIX] LabelSelection Widget
The span was not closed (<span>...<span>)
2015-06-18 10:55:18 +02:00
Christophe Matthieu 7cbe33efdf [FIX] web: relational widget: replace_with returned by the get_value must contains the updated lines. 2015-06-17 18:23:51 +02:00
Christophe Matthieu 26a5ef4f7c [FIX] web: one2many list
Error when click on other record after an update on a one2many record in list editable which have an 'add an item' by checkbox selection
2015-06-17 18:22:21 +02:00
Christophe Matthieu 0cf516f860 git commit -a -m "[FIX] web: relational widgets
Traceback when save a record (e.g.: event.event) when edit and save a created one2many's record in form view (e.g.: event.question), if a one2many line are created previously inside the modal form view (e.g.: event.answer). Wrong check in _on_load_record to don't set starting_ids for created record
2015-06-17 18:17:43 +02:00
Denis Ledoux 4fbecc35e1 [FIX] web: break tags containing very long words
Otherwise they overlap with the rest of the form.

opw-641567
2015-06-17 16:10:31 +02:00
qsm-odoo ac8148cfca [FIX] web, web_tests: update css classnames
Update css classnames used in web.tour.js and add them to corresponding
elements in web
2015-06-17 10:03:03 +02:00
qsm-odoo ec7e399b4f [IMP] web: adapt FieldCharDomain to new modals + add debug mode 2015-06-17 09:49:46 +02:00
qsm-odoo 46bf047e86 [IMP] web, web_*, mail, board : New modals and dialogs 2015-06-17 09:49:46 +02:00
qsm-odoo d6d3d0983f [IMP] web, web_calendar: New calendar 2015-06-17 09:49:46 +02:00
Christophe Matthieu 8fcd314253 [IMP] boot: add failed modules in unloaded modules to add informations like dependents, and remove failed modules from the missing module list 2015-06-16 17:13:01 +02:00
Aaron Bohy c99c6a8974 [REF] web, mail: update jquery autosize to version 3.0.5
Note: it is no longer a jquery plugin
2015-06-16 16:10:38 +02:00
Aaron Bohy c31ef083ff [FIX] web: view_manager: instantiate sidebar before calling do_show
In google_drive, the sidebar is extended and listens to the event
load_record triggered when do_show of form_view is performed. The
sidebar should thus be instantiated before calling do_show, otherwise
the gdrive button is not available for the first record displayed in
a form_view.
2015-06-16 14:14:07 +02:00
Christophe Matthieu 5e7e8e90b3 [FIX] web: add 'forget' commands in AbstractManyField 2015-06-16 12:32:57 +02:00
Géry Debongnie c530c0d1ee [FIX] web: various tweaks to make web_kanban view work 2015-06-15 16:30:34 +02:00
Géry Debongnie 01c3dfa7d2 [IMP] web: add pager widget to web client
This pager is used by the kanban view. It could be used by the list
view, the form view and some others (and it is, in the enterprise
edition)
2015-06-15 16:30:34 +02:00
Simon Lejeune 5cb10d4fc9 [IMP] web: update bootstrap to 3.4, and use less files
important note: the bootstrap.css file is left in the tree because
it is used for reports.  (reports fails if they use the less files)
2015-06-15 16:29:38 +02:00
Goffin Simon c7c2f5743b [FIX] base: export translation
In css, overflow-x and overflow-y must have the same value. If overflow-x is equal to
auto then overflow-y is equal to auto.
To solve the problem, the height of the input is removed because it is forced by the Jquery
auto-completion plugin according to the wrapper.
Without this patch, when you go to Settings > Import/Export > Export Translation and click on the arrow to
to show the list of modules you can export, the list is partially hidden.

opw:632607
2015-06-15 14:54:07 +02:00
Christophe Matthieu 9c1155a020 [IMP] web: boot.js add some informations for debugging (missing modules, failed modules, unloaded modules). Add odoo.init in the website to display debugging informations. 2015-06-15 13:45:52 +02:00
Christophe Simonis 4647778758 [MERGE] forward port of branch 8.0 up to ea59856 2015-06-15 12:28:32 +02:00
Christophe Matthieu bd3f6e447e [IMP] web: split misc.js into misc.js and session_instance.js 2015-06-12 12:02:34 +02:00