Commit Graph
7897 Commits
Author SHA1 Message Date
Martin Trigaux 613286b0e8 [I18N] export application terms of all modules
Now that most refactoring has been merged

It is better to have red a great work of another culture in translation than never to have read it at all.
― Henry Gratton Doyle
2015-09-07 17:21:58 +02:00
Martin Geubelle 371276dff4 [IMP] web, web_kanban: many2manytags color selection 2015-09-07 14:20:36 +02:00
Christophe Matthieu dd807f02a3 [FIX] web: traceback when save directly after introduce text in m2o
m2o try to open a qui create modal but the form view are closed and $input doesn't exists.
2015-09-07 13:32:15 +02:00
Christophe Matthieu 522fcacb21 [IMP] base: assets now directly use /web/content url 2015-09-03 19:31:00 +02:00
Christophe Matthieu 952b03e32d [IMP] web: boot.js display the log only on error or with the debug mode 2015-09-03 19:31:00 +02:00
Simon Lejeune 30e07438b5 [FIX] web: view manager: sanitize type
by ignoring the views which types aren't in the view registry
2015-09-03 18:05:19 +02:00
Arthur Maniet cdb30b507a [ADD] stock_barcode: field widget with barcodes scan + manual input
Barcodes are detected by catching keypresses. When a keypress is not
part of a barcode, it is 'released' by forging a keypress event.
For security reasons, a non-native keypress doesn't trigger the native
input mechanism. So in order to make both barcode-scanning and manual
keypresses work in a field, it is necessary to have a handler listen
to the 'false' keypresses and simulate the native input behaviour.
2015-09-03 11:23:38 +02:00
Raphael Collet 8af431d906 [ADD] web, web_kanban: add archive/unarchive
In kanban views, add archive/unarchive for all records in a column.
In list views, add archive/unarchive in sidebar.
2015-09-02 14:29:42 +02:00
qsm-odoo 4ea032e055 [IMP] web: Backport of useful odoo variables 2015-09-02 12:32:06 +02:00
Jérome Maes 58c9530311 [FIX] im_livechat : fix session binding. Required to bind session on server url from livechat to male it work outside odoo server. In website_livechat, the web.session js namespace is redifined, and i'm still not sure this is a good idea 2015-09-01 21:04:33 +02:00
Aaron Bohy a0cbf891af [REM] *: remove chat menu and timeline view 2015-09-01 20:57:13 +02:00
Aaron Bohy 5907be1f33 [ADD] web: backport of function getPosition()
to compute the offset of a DOM element
2015-09-01 20:06:03 +02:00
Aaron Bohy 294abae968 [IMP] web: dialog: wait for button's onclick handler to close
When a button in the modal's footer has an onclick handler and closes the
modal, the action of closing the modal should wait for the potential deferred
returned by the handler.

For instance, if an handler performs an asynchronous call and, when resolved,
triggers a notification, the notification doesn't reach the webclient if the
modal is already closed because the widgets hierarchy is broken.
2015-09-01 20:05:34 +02:00
Aaron Bohy ac39b03a24 [ADD] web: less mixins for animation and transition 2015-09-01 20:05:25 +02:00
Aaron Bohy 23f0c49bbe [REF] web: backport some classnames renaming
oe_form_binary_form -> o_form_binary_form
oe_form_binary_file -> o_form_input_file

Required for new design compatibility (classnames accessed in addon mail)
2015-09-01 20:05:20 +02:00
Aaron Bohy 4989033fe0 [IMP] web: searchview: options to disable parts of the menu 2015-09-01 20:05:15 +02:00
Aaron Bohy 0fe349def2 [IMP] web: sidebar: generalize it for client actions 2015-09-01 20:05:09 +02:00
Aaron Bohy 5bd8e02dc8 [IMP] web: action_manager: update client action's title
when the widget's title changes, as it is displayed in the breadcrumbs
2015-09-01 20:05:05 +02:00
Jérome Maes 275efedaad [IMP] web : add partner_id of the current in the webclient session 2015-09-01 20:05:00 +02:00
Arthur Maniet 121556dcea [ADD] barcodes/web: element button can use attribute barcode_trigger
A button can be triggered when a barcode corresponding to its attribute
'barcode_trigger' is scanned
2015-09-01 13:26:02 +02:00
Arthur Maniet 9cf6339b3e [ADD] web: fields char and many2one can take an option barcode_events
This allows to detect barcode scans while the focus is in such a field.
It is not the default behaviour because buffering keystrokes to see if
they are a barcode then releasing them if they aren't isn't trivial
(it is impossible to trigger a native keyboard event).
2015-09-01 13:26:02 +02:00
Aaron Bohy c1cc4b830b [FIX] web: stat_button: display none on hover
A 'display: none' rule on hover has been added for boolean buttons, on each
'o_stat_button o_stat_text' that hasn't classname o_hover. This applies on
every stat button that isn't a boolean button, so their content is always
hidden on hover.
2015-09-01 11:02:41 +02:00
qsm-odoo b26004b9b8 [FIX] web: Listview editable, reenable warnings
Disabling all warning coming from listview editable broke tests
because they relied on this behaviour.
The problem that was to be solved is that warnings coming from
listview editable were useless for the user in a form view. Another
solution must be found.
2015-08-31 17:12:25 +02:00
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
Ajay Javiya 31518bc09b [IMP] base: make group "Technical Features" effective in debug mode only
In method `user_has_groups`, make "Technical Features" effective in debug mode.
Make the group "Employees" inherit "Technical Features".
Make the group "Technical Features" invisible in the user form view.
Remove useless `ir.rule` attached on group "Technical Features".
Fix `test_acl` by avoiding the tricks around the group "Technical Features".
2015-08-28 14:51:09 +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
Martin Trigaux 6c51a80aa4 [I18N] export application terms of all modules 2015-08-25 12:01:38 +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
Aaron Bohy f3f56f6dc9 [FIX] web: typo introduced by 6baf611df1 2015-08-24 12:00:31 +02:00
Odoo Translation Bot 99931637d5 [I18N] Update translation terms from Transifex 2015-08-23 01:51:13 +02:00