Commit Graph
7271 Commits
Author SHA1 Message Date
sah 62c4b0356b [IMP] web: Ask user to confirm export template removal
PURPOSE:

When users try to delete records in the database, we usually warn them about the possible damage they would cause by asking them to confirm this is what they want to do (just in case you misclicked for example)

Unfortunately, that feature wasn't implemented everywhere, at least no in the export window, which means a user can remove ir.exports records without having to confirm that's indeed what he wants to do.
This got worsened by the fact, in the export window (like pictured in the attachment), the "Save field list" button is less than 10px away from the DELETE button, meaning you could really remove 10min of your work (or worse, anybody else's work as we don't have any specific record rule on that) in one click
2016-11-04 14:16:14 +01:00
Christophe Simonis 4d9f5bbf5b [MERGE] forward port branch 10.0 up to ab98523 2016-11-02 18:02:11 +01:00
qsm-odoo dd560377e2 [IMP] web: improve traceback reporting
* Do not assault the user with a full traceback on bug, but indicates
an error occured and allow him to toggle the traceback
* Automatically scroll the traceback to the end (better for python
errors)
* Propose the user to report the traceback by using a new "Copy"
button which correctly copies the full error + traceback
2016-11-02 13:26:00 +01:00
Sylvere Richard 643180afe8 [FIX] fix options parameter of column.format() method by adding the model 2016-10-28 10:33:55 +02:00
Christophe Simonis ea479ce6f3 [MERGE] forward port branch 10.0 up to 3bb022d 2016-10-27 18:23:44 +02:00
Christophe Simonis 3bb022d57c [MERGE] forward port branch saas-12 up to 6f8e40c 2016-10-27 18:17:59 +02:00
qsm-odoo 68b1c5c1fa [IMP] web: review date(time) field custom search filters
* Remove 'greater than'
* Remove 'less than'
* Rename 'greater than or equal to' with 'is after'
* Rename 'less than or equal to' with 'is before'
* Datepicker starts now by default with the current date
2016-10-27 17:57:14 +02:00
Christophe Simonis 6f8e40cdec [MERGE] forward port branch saas-11 up to 1304d13 2016-10-27 17:55:47 +02:00
Christophe Simonis 1304d13c7f [MERGE] forward port branch 9.0 up to 25616b9 2016-10-27 17:35:49 +02:00
Nicolas Lempereur 25616b9f2b [FIX] web: repair length field in view list
Underscore method _.each expects an array like object when a "length"
property is present.

This was an issue with a record having a numeric "length" field set to a
non-negative value. When changing a line the change would not appear on
blur.

This issue was fixed with 0e664c9e9 but introduced back with f0e331e00.

opw-691070

Forward-port of 5d17749ff4 which has been
forgotten during previous forward-port.
2016-10-27 14:46:08 +02:00
Christophe Simonis 83eaaab801 [FIX] web: correct tests to mock fields_get method 2016-10-26 19:09:26 +02:00
Aaron Bohy 1f06cc4168 [FIX] web: list editable: traceback when removing a row in edition
When clicking on the trash to remove a line (e.g. a sale order line
in a quotation form view) while editing another line, it produces a
traceback (in most cases), or behaves randomly (less frequently)
like removing both lines, or one of them, or maybe none of them.

Anyway, this feature doesn't work at all, so this commit simply disables
it when we are in edition mode.

In a perfect world, we would fix the feature instead of disabling it,
but the code of the list editable is so instable that it would most
certainly break something else.

Closes #13778
2016-10-26 13:38:57 +02:00
Nicolas Lempereur f82ab99c1a [FIX] web: BufferedDataSet write to length field
Underscore method _.each expects an array like object when a
"length" property is present.

This was an issue with a record having a numeric "length" field set
to a non-negative value.

opw-691070
2016-10-24 15:57:43 +02:00
Kinjal Mehta b87e6e02a8 [IMP] general: Place (Un)Archive button as last button by default
PURPOSE
=======

Usability Issue of  "Archived" button. People tend to click on it accidentally

+ Also rename `Unarchive` into `Restore`
2016-10-21 09:34:13 +02:00
Christophe Simonis 938ffb92da [MERGE] forward port branch 10.0 up to 6466aa4 2016-10-19 18:16:14 +02:00
Christophe Simonis 6466aa499f [MERGE] forward port branch saas-12 up to 00f4547 2016-10-19 18:09:53 +02:00
Christophe Simonis 00f45470da [MERGE] forward port branch saas-11 up to 8411b89 2016-10-19 17:56:52 +02:00
Jeremy Kersten e05dba357e [FIX] web: one2many displayed even if no data.
Before this commit, the one2many widget was not displayed if no data.
That make some form (notebook) empty while the user don't click en edit to see the widget appear.

Eg: stock picking 'Initial Demand' tab

Courtesy of @ged-odoo
2016-10-17 17:32:42 +02:00
Jeremy Kersten 5da0ae9b04 [FIX] web: add min-height on notebook
Moved from enterprise
2016-10-17 17:32:42 +02:00
Géry Debongnie a75961364b [FIX] web: properly apply styles attribute to form fields
The form widgets did not apply the 'style' attribute to the result of
the rendering.  Because of that, many small adjustment were no longer
possible. This commit makes sure that it is indeed done.
2016-10-17 16:33:09 +02:00
Christophe Simonis 53d8f76a40 [MERGE] forward port branch saas-12 up to e8e4145 2016-10-17 16:00:39 +02:00
Christophe Simonis e8e4145c99 [MERGE] forward port branch saas-11 up to ba6ca78 2016-10-17 15:17:48 +02:00
Christophe Simonis ceb1ba6dbd [MERGE] forward port branch 9.0 up to b14c8b3 2016-10-17 13:46:24 +02:00
Christophe Simonis b14c8b361c [MERGE] forward port branch saas-6 up to fa50349 2016-10-17 13:14:22 +02:00
Christophe Simonis fa50349d7e [MERGE] forward port branch 8.0 up to 001610e 2016-10-17 13:01:20 +02:00
Devendra Kavthekar c63c225274 [FIX] web: is_false() for reference field widget. (#9335)
In the widget, the value of reference field is a pair `[val1, val2]`.
When the field is blank, its value is `[false,false]`, thus checking `[false,false] === false`
never succeeds, and this breaks the check for required fields.
2016-10-13 16:01:21 +02:00
Simon Lejeune 5abe76c2d2 [FIX] web: clear_uncommitted_changes on browser's back button
This is done by guarding the `on_hashchange` evant handler with the
`clear_uncommitted_changes` function.

Note that the url has already changed when we are in this handler, so we
make sure to restore the old url when the user chose to continue its
edition.
2016-10-13 15:51:09 +02:00
Simon Lejeune a7b976c704 [FIX] web: browser's back button while in the same action
When you browse through the views of an action and then hit the back button,
the view does not change. For example, go to the customers kanban, click
on a customer, hit back, you're still in the customer form view.

related rev: 46857d267b

`do_load_state` is called when you hit f5 or press the back button on
your browser. The related rev took care of fixing the ugly part that
make the webclient goes trough the multi record view then the mono
record view when you hit f5 on a mono record view.

In this context, it removed the code in view manager's `do_load_state` that
switched the mode of the action if it isn't the same the one the web client
is trying to restore from the state (because now the correct mode is loaded).

However, if you hit the back button while the previous view is in the same
action, it obviously doesn't switch the mode anymore and you're facing
the same view.

The issue is fixed by restoring the switch_mode in the view manager's
`do_load_state` (without its oudated comment).
2016-10-13 14:38:33 +02:00
Jeremy Kersten d3609f7f19 [FIX] web,crm: list view, don't fallback on group_operator declared in python
Partial revert of odoo/odoo@633780a
2016-10-12 18:03:51 +02:00
Christophe Simonis 8847519621 [MERGE] forward port branch 10.0 up to 0acd63d 2016-10-12 17:10:49 +02:00
Christophe Simonis 226b28e090 [MERGE] forward port branch saas-13 up to f3532a6 2016-10-11 19:09:32 +02:00
Christophe Simonis f3532a6da6 [MERGE] forward port branch saas-12 up to 54ebe31 2016-10-11 19:07:42 +02:00
Christophe Simonis 54ebe31f51 [MERGE] forward port branch saas-11 up to 685e310 2016-10-11 18:33:18 +02:00
Christophe Simonis 685e3104ec [MERGE] forward port branch 9.0 up to 7bdb6f9 2016-10-11 18:23:27 +02:00
Christophe Simonis 24a2217980 [MERGE] forward port branch saas-6 up to c4fb79f 2016-10-11 17:06:35 +02:00
Christophe Simonis c4fb79ff88 [MERGE] forward port branch 8.0 up to ecb6055 2016-10-11 16:56:13 +02:00
Aaron Bohy 8e113aebf1 [FIX] web: X2Many list views: don't display action buttons 2016-10-11 13:52:04 +02:00
Jeremy Kersten 633780a00c [FIX] web,crm: view_list respect group operator defined in the view.
Remove useless avg defined on crm view.

If you define avg='Average Values' in a view, now we see in the footer of list view the average.
2016-10-11 11:50:24 +02:00
Ravi Gadhia 0afe5d4af5 [FIX] web: hide "Create" button for editable tree views with create="false"
Make it such that the buttons "Save" and "Discard" are still visible.
2016-10-11 10:22:10 +02:00
Christophe Simonis c60e43a9a4 [MERGE] forward port branch saas-13 up to 341bea8 2016-10-10 13:25:31 +02:00
Christophe Simonis 341bea8f88 [MERGE] forward port branch saas-12 up to 43cb4ac 2016-10-10 13:00:05 +02:00
Christophe Simonis 43cb4ac202 [MERGE] forward port branch saas-11 up to 3cdf429 2016-10-10 11:57:51 +02:00
Christophe Simonis 3cdf429f8b [MERGE] forward port branch 9.0 up to e2ede31 2016-10-10 11:39:52 +02:00
Jeremy Kersten b770c3e5a3 [FIX] web: fix styling in many2many tag input
Since Chrome 53.0.2785, the input select is hover the existing tag.
With this fix, the existing tag are displayed at the right side of
the input to create a new one.

This commit closes #13655

Courtesy of @8cells
2016-10-10 11:17:17 +02:00
Nicolas Martinelli 9ab6af8f01 [IMP] web: move "Activate Assets Debugging"
It is more logical to display it next to "Leave the Developer Tools"
2016-10-10 10:16:16 +02:00
Nicolas Martinelli 6c3ec9b053 [FIX] web: remove "Disable/Enable Technical Features"
This link was useful when the "Technical Features" group was not linked
to the "?debug" parameter. This is not the case anymore, and this button
has no effect.
2016-10-10 10:14:46 +02:00
qsm-odoo fb363b572b [FIX] *: adapt odoo interface violet
Change color #a24689 to #875A7B

Commit https://github.com/odoo/enterprise/commit/8ac1c19fac7615fecd51e670f798d13158a4e53c
changed the odoo interface violet by changing the main LESS variable
but forgot there was many direct occurences in XML/HTML/... (for
example for the mobile browser color).

Even if it's community the odoo interface violet is used at many places
(module description, XML demo data, ...).
2016-10-05 10:29:00 +02:00
Parth Gajjar 61a07c9966 [IMP] web: improved image widget for mobile
- Before it need a tap to show options
  - And Tap area was not enough for mobile
2016-10-03 18:20:34 +02:00
Christophe Simonis c8cc54559b [MERGE] forward port branch 10.0 up to 91a1448 2016-09-30 17:23:30 +02:00
Laurent Smet 14fd32bd08 [FIX] web: prevent a crash when clicking on 'more' button (#13630)
A traceback is generated when a user clicks on 'more' button in settings to see the pending invitations.
That was caused by a missing check condition.

backport of saas-13 commit 2fdf631

opw-689597
2016-09-29 10:53:01 +02:00