Commit Graph
6638 Commits
Author SHA1 Message Date
qsm-odoo 3e0d7c9167 [REF] web: Backport of listview editable
Backport of refactoring/fixes/features for the listview editable. This
includes changes to formview and listview too (as the listview editable
interacts with them).
2015-08-31 13:10:26 +02:00
Raphael Collet 80e5b4245a [IMP] web: make boolean_button more specific, and change label on hover
The widget now provide labels that depend on widget option "terminology".  For
each terminology, it provides four button labels that are shown depending on
the field's value and hover status on the button.
2015-08-31 12:07:41 +02:00
Antony Lesuisse a83264be8b [FIX] web: handle delete m2m command in list views 2015-08-28 19:31:33 +02:00
qsm-odoo 822f0b5539 [FIX] web: M2ODialog triggering
The M2ODialog which indicates to the user it needs to create the
unknown value it typed was only launched if the many2one had an
empty value.
2015-08-28 17:07:45 +02:00
Christophe Matthieu c53bd36655 [FIX] web: BufferedDataSet must update the cache when reset_ids is called 2015-08-28 16:58:00 +02:00
Christophe Simonis edeceba7df [MERGE] forward port of branch saas-6 up to 7a768a4
Due to `sale` rewrite (94716a3f14),
the commit 503820acb6 has been partially
ignored (in sale.order.line) and will be rewritten later using new-api.
2015-08-28 15:07:16 +02:00
Martin Geubelle 39bc7871e1 [IMP] web: add attribute searchview_hidden to views.
This attribute can be used when the view needs a searchview but wants it to be hidden.
2015-08-28 14:06:12 +02:00
Raphael Collet d2b9015255 [IMP] web: in boolean_button, move options to inner elements to handle translations
In practice, we replace:

    <field name="active" widget="boolean_button"
        options='{"true": "Active", "false": "Inactive"}'/>

by:

    <field name="active" widget="boolean_button">
        <span class="o_stat_text o_true text-success">Active</span>
        <span class="o_stat_text o_false text-danger">Inactive</span>
    </field>
2015-08-28 13:54:57 +02:00
Nicolas Martinelli 0414c9dd6a [IMP] web, website*: adaptation due to the new Sale module
Major changes:
- No use of UoS anymore
- Specific method to calculate delivery

Reason: complete rewrite of the Sale module.

Responsible: fp, dbo, nim
2015-08-27 19:21:37 +02:00
Christophe Simonis 6d85a9a4b9 [MERGE] forward port of branch 8.0 up to d744923 2015-08-27 18:30:46 +02:00
Christophe Simonis d744923b63 [MERGE] forward port of branch saas-3 up to 1783a7d 2015-08-27 18:01:52 +02:00
Christophe Simonis 1783a7d005 [MERGE] forward port of branch 7.0 up to 411a07a 2015-08-27 18:01:14 +02:00
Gaurav Panchal 95cb54b80b [ADD] web: add dynamic widget to toggle boolean button 2015-08-27 16:59:47 +02:00
Christophe Matthieu 0592305126 [REF] web: data.js: refactoring of BufferedDataSet (less code and speed up) 2015-08-27 15:01:09 +02:00
Christophe Matthieu a102a9f3fc [IMP] web: add a test to check the one2many create form and onchange 2015-08-27 15:01:09 +02:00
Nicolas Lempereur 411a07a64e [FIX] web: enable default_focus on html field
closes #8244
opw-647578
2015-08-27 13:20:41 +02:00
Nicolas Lempereur e2930e19a0 [FIX] web: glitch with scroll and list editable
On a first edition of a view list editable, scrolling before the first
edition might cause an issue: the editing fields are higher than they
should.

This commit solves this.

This issue stems from jQuery .offset({value}) function which is broken
if the element we want to position:

- is in absolute postionning,
- is inside a scrolled element in non static positionning,
- has not both top and left css property setted,
- has no ancestor element between itself and the scrolled not in static
  positionning.

This issue happens less (and probably not at all) in saas-6 since the
last condition is most often not met thanks to this change:
 https://github.com/odoo/odoo/commit/1ccd87a#diff-27c072074221456684bfc5f150ca0bc9R876

This issue of jquery is solved since jquery 3.0.0-alpha1:
 https://github.com/jquery/jquery/commit/2d71594

( the issue is shown in https://jsfiddle.net/wpjrnggf/ and we can see it
is solved with jQuery 3.0.0-alpha1 https://jsfiddle.net/L6ykpjgy/ )

closes #8251
opw-647622
2015-08-27 13:17:00 +02:00
qsm-odoo 6d439ec6df [IMP] web: backport of utils.less file
Add mixins for transition, animation and text-overflow.
2015-08-26 16:41:56 +02:00
David Monjoie a77f5cf42f [ADD] website_form: generic form controller
Contains a new ajax post function that comes from mdo's
original code and that I was not able to get rid of.
2015-08-26 16:01:19 +02:00
Martin Geubelle 1e4e1644a9 [FIX] web: add a default value for progressbar
Remove the value in the input leaded to a traceback.
2015-08-26 14:29:20 +02:00
Christophe Simonis f5259d67a7 [FIX] web: correct list view limit computation.
Bug introduced during last forward-port.
2015-08-24 18:35:10 +02:00
Christophe Simonis 88c0ce0692 [MERGE] forward port of branch saas-6 up to e16d495 2015-08-24 18:19:19 +02:00
qsm-odoo b904cd876f [FIX] web: FieldRadio without any value
When a FieldRadio had no selected value, a traceback occured when
trying to render the widget in readonly mode.
2015-08-24 15:01:10 +02:00
Christophe Matthieu d4bae06d08 [IMP] web: use css to display attachment mimetype
Widgets and website display images or display the type with icon like pdf, doc...
2015-08-21 22:06:52 +02:00
Christophe Matthieu 6baf611df1 [IMP] web: create generic controller '/web/content' and '/web/image'
Replace deprecate controllers like /web/binary/image, /web/binary/saveas...
Use ETag for all content with 'unique' option to cache the content if the content is never changed.
2015-08-21 22:06:52 +02:00
qsm-odoo 99faa6addd [FIX] web: M2ODialog, adaptation to new Dialog API
(backport from the enterprise version)
The M2ODialog still used the old Dialog API.
2015-08-21 14:31:11 +02:00
qsm-odoo 2a3f359ae8 [REF] * : Remove oe_left of oe_title & oe_avatar
LESS rules (enterprise compatibility) :
* .oe_avatar is float:left by default
* .oe_title is placed between oe_avatar/oe_button_box if any
without the need to make it float
2015-08-21 14:31:11 +02:00
Géry Debongnie 3c4f88b30a [IMP] web: increase tooltip delay timer
from 500 to 1000, as requested by fp
2015-08-21 12:17:15 +02:00
Thibault Delavallée 88b8cd0587 [REF] mail: model update for NewChatter
Main changes :
- mail.notification model is removed. People do not receive notifications
anymore. Instead two ways of following documents exist
  - using a channel; messages will be displayed on the channel itself
  in a near future commit
  - following with its partner; messages will all be considered as
  needaction, using a new m2m table. People should receive less
  needaction messages by following less records by themselves.
There is no more read / unread state anymore. Instead only needaction
messages are considered. Todo (Favorites) messages still exist, and are
stores on a new m2m table instead of using decorated notifciations.
- the main filter for documents is not message_unread anymore, but
message_needaction. A lot of views and filters have been updated
accordingly.
- the vote feature has been removed
2015-08-21 12:11:56 +02:00
Aaron Bohy 362dcdd99a [FIX] web: search_menu: add missing 'use strict' statement 2015-08-20 10:26:31 +02:00
Christophe Matthieu 6538c67c2b [FIX] web: many2one try to read a creating record but the cache doesn't yet contain the record 2015-08-19 17:05:30 +02:00
Simon Lejeune 14b10d6123 [FIX] web: control panel: don't compensate late of gutter
rev 14bef4d15c re-added it
2015-08-19 16:16:14 +02:00
Raphael Collet 1b8c2a2078 [IMP] fields, web: change output format of onchange for x2many fields
Those fields are serialized as lists of commands.
2015-08-19 16:10:43 +02:00
Simon Lejeune 14bef4d15c [REF] web: remove grid gutter width bootstrap override 2015-08-19 14:19:13 +02:00
qsm-odoo e33f4c9c83 [FIX] web: o_row compatibility
Elements in a .o_row are displayed like if they are .oe_inline
elements but div elements also needed to be inline-blocks elements
and to have space between them.
2015-08-19 11:24:31 +02:00
Srushti Patel 2feaa4c15b [IMP] web: sorted custom group by items 2015-08-19 10:40:39 +02:00
Goffin Simon 8d22e79d9f [FIX] web: user_context
The custom filters were not translated in the user language(FR) when:
-Going to Marketing / Mass mailing
-Creating a new one
-Selecting "customers"
-Clicking "select records"
-In the modal, clicking Filtres / Add custom filter

To have the user_context, the context sent to fields_get must be taken
with get_context.

opw:647495
2015-08-19 09:14:09 +02:00
Ronak Baxi 0e603b9927 [FIX] web: x2many tour: broken selector
of a button in a modal footer
2015-08-19 08:10:45 +02:00
Ronak Baxi 393f136509 [IMP] *: Uniformize all modal footers
The main button has classnames btn btn-primary.
Other buttons have classnames btn btn-default.
No more 'or' between the buttons.
2015-08-19 08:10:45 +02:00
Simon Lejeune f97b44580b [REF] planner: sidebar menu
fp's request
2015-08-18 17:57:38 +02:00
Christophe Matthieu 03e982b93f [FIX] web: need to initialize values into the cache 2015-08-17 16:17:22 +02:00
Aaron Bohy 7e3d98f4a8 [FIX] web,base: list view: limit
Before this rev., the number of records per page to display in list views
could be specified in the action definition, but it didn't work for One2Many
list views (because they are instanciated by a FormView, which isn't supposed
to have a reference to the action, instead of the ActionManager as regular
list views).

This rev. allows to specify the list_view's limit directly in the definition
of the view, and not only on the action as before.
2015-08-17 13:41:27 +02:00
Christophe Matthieu ea3bfe1bd5 [FIX] web: readonly fields not transferred from dialog to 2many field
Transfer options to 'data_create' and 'data_update'
Add tour to check the fix
2015-08-17 10:17:58 +02:00
Aaron Bohy b1705b1915 [FIX] web: debug manager: view metadata
the modal content should now be given in the options
2015-08-17 09:40:37 +02:00
Christophe Simonis 98ef7e29f3 [FIX] web: correct x2many js test tour.
Now that users are ordered by name, we need to explictly choose the
correct participants.
2015-08-16 00:52:04 +02:00
Christophe Simonis 1009eeda78 [FIX] ajax.js: stringify error for debugging help 2015-08-16 00:51:43 +02:00
Christophe Simonis 73e652818b [MERGE] forward port of branch saas-6 up to 8d95f6d 2015-08-15 16:57:35 +02:00
Aaron Bohy fc3a903dbf [FIX] web: oe_button: don't override bootstrap rules
Remove the style defined on oe_button as it overrides bootstrap rules like
btn-primary, btn-default...
2015-08-14 16:29:44 +02:00
Christophe Matthieu 7c10cb47f1 [FIX] web: readonly fields not transferred from dialog to 2many field
Transfer options to 'data_create' and 'data_update'
Add tour to check the fix
2015-08-14 15:34:58 +02:00
Raphael Collet e0cd26376c [FIX] web: make the web client process the new output format of onchange
The dataset implementation has been improved to handle the result of a `read`
on ids that are already modified in the dataset: the lists `to_create` and
`to_write` are updated properly.
2015-08-14 15:09:04 +02:00