Commit Graph
113723 Commits
Author SHA1 Message Date
Géry Debongnie 8bb6bf4e44 [DOC] base: improve error message in asset bundles
When compiling a less file in the asset bundles, we make sure that the
@import statements are 'sanitized', which is really non intuitive to
many developers.  With this commit, we simply add more information to
the error message, to give them a better chance of not wasting their
time.

Thank you yenthe for the message...
2017-11-06 11:45:03 +01:00
Yannick Tivisse 117351e121 [REM] account: Remove unused yml tests 2017-11-06 10:58:28 +01:00
Fabien Pinckaers b7cb6fe536 [IMP] project: misc typos 2017-11-03 21:13:13 +01:00
Mehul Patel 35182f45eb [IMP] product_margin: Replace yml test by a meaningful python test
Purpose
=======

The original yml doesn't test anything except a read on the related fields.

Specification
=============

Replace the test by a python test that compares the values with the expected ones.
2017-11-03 14:53:53 +01:00
Pragnesh Mistry 20ab577531 [IMP] account: convert yml tests into python
As they are only imported in l10n_generic_coa, move them in this module.
2017-11-03 12:16:37 +01:00
Nicolas Martinelli c48a74003a [FIX] stock: store fields
Storing fields allows to use "Group By" functionality.

opw-778213
2017-11-03 10:03:42 +01:00
Andrew Latham 7fd8c7f7f7 [FIX] account: correct spelling mistakes
Closes #20652

Partially backported at 5aebc22722
2017-11-03 09:19:33 +01:00
Axay Javiya ad70f91daf [IMP] account_voucher: convert yml tests into python 2017-11-02 16:18:37 +01:00
Ankit Joshi 6a943000e8 [IMP] stock_dropshipping: convert yml tests into python 2017-11-02 14:43:50 +01:00
Hiral Bhavsar 620659d8e8 [IMP] sale_mrp: Convert yml test into python 2017-11-02 14:38:47 +01:00
Alexandre Kühn 98cde7ca7b [IMP] web: createParent in test_utils.js
New utility function to create a parent
widget from given params that will be
given to addMockEnvironment.
2017-11-02 14:20:49 +01:00
Christophe Simonis 9a32dacd8c [MERGE] forward port branch 11.0 up to ee2b9fae35 2017-11-02 13:44:53 +01:00
Simon Lejeune ee2b9fae35 [FIX] sale_stock: launch procurement rule and locked
If the user chose to "lock confirmed orders" in the sales's settings,
the procurements where not runned correctly and the associated delivery
orders were not created.

This issue is caused by the fact that `_action_launch_procurement_rule`
was done on done sale order line. We refactore the method so that we
call this method always when the sale order line are in `sale` state.

Fixes #20599
2017-10-31 17:20:46 +01:00
Simon Lejeune 3b91780bc0 [REF] stock: result package consistency
Make sure that the all move lines having the same result package have
the some destination location. This should not happen with the
previous commit.

Adapt the tests accordingly, their behaviour was wrong.
2017-10-31 17:13:27 +01:00
Simon Lejeune f4866ab7f9 [REF] stock: domain on packages fields on move line
The user can only chose packages from the same location as the move line
as a source package.

The user can only chose packages
  - of the same destination location as the move ine
  - without location (meaning, empty)
  - of the same id as the source location
as a destination location.
2017-10-31 17:12:55 +01:00
Martin Trigaux 498bbb3fe7 [I18N] better string labels
Courtesy of the translators
2017-10-31 16:57:24 +01:00
Richard Mathot dafc3fb792 [FIX] ir_qweb: prevent crash on guessing document type
`document` variable may not be a filepath; in this case, it can contain
non-ascii characters that crash os.path.exists.
We improve the heuristic in order to avoid this.
2017-10-31 16:57:14 +01:00
Christophe Simonis 8f1e2044cd [MERGE] forward port branch saas-16 up to 810b6aa760 2017-10-31 16:29:07 +01:00
Simon Lejeune c8b2f5ca9e [FIX] stock: show detailed operations view
When enabling the unit of measures, it was not possible to save a move
line as product_uom_id is required in the model and readonly in the
view. We add the "force_save" attribute.

Courtesy of @lap-odoo
2017-10-31 15:48:10 +01:00
Christophe Simonis 810b6aa760 [MERGE] forward port branch saas-15 up to d1fcca1504 2017-10-31 15:25:01 +01:00
alexkuhn fa9567063d [IMP] web: intercepts on add_mock_environment (#20582)
Generalization of the field 'intercepts' at the
level of the function addMockEnvironment in
/web/.../testutils.js.

Previously, only createAsyncView had support for
'intercepts'. By moving to addMockEnvironment,
we generalize it, so that even mock environment
others than views could intercept bubbling events.

This is desirable in order to test the app_switcher,
so that we can intercept bubbling events like
'hide_app_switcher' to web_client.

Since addMockEnvironment already makes use of some
special intercepts ('call_service', 'load_views', ...),
We must handle the remaining intercepts afterwards,
hence at the very end of the definition of addMockEnvironment
2017-10-31 13:00:55 +01:00
Christophe Simonis d1fcca1504 [MERGE] forward port branch saas-14 up to a0157f104f 2017-10-31 12:36:47 +01:00
Christophe Simonis a0157f104f [MERGE] forward port branch 10.0 up to dcce040a63 2017-10-31 12:07:15 +01:00
Christophe Simonis dcce040a63 [MERGE] forward port branch 9.0 up to f41690538d 2017-10-31 11:47:35 +01:00
Martin Geubelle 81a5c1563a [FIX] web: FieldSelector: always keep first page
In the FieldSelector, after clearing the chain and closing the popover,
the very first page was removed from the widget `pages`. This was causing
issue when trying to select a new field again.

This commit ensures that the first page is not sliced.
2017-10-31 11:38:29 +01:00
Richard Mathot 78e46637a2 [FIX] point_of_sale: dead file 2017-10-31 11:05:18 +01:00
Fabien Meghazi df0cc479fc [FIX] doc: fix typo 2017-10-31 09:57:48 +01:00
Adrian Torres ba9381ed2a [FIX] base_import_module: display correct error
Previous to this commit, when importing a studio module with unmet
dependencies that were not studio the error message would just display
the Studio is required to install Studio customizations.

With this commit it should now correctly display the missing
dependencies by checking if only web_studio is in the set of unmet
dependencies

opw-777642
2017-10-31 08:22:59 +01:00
Deep Patel 0e9197c562 [FIX] website: bg element not found when using big parallax snippet
qsm:
This is because of multiple animations during edition (which is not
occuring afterwards). This is not supported, but as it does not break
anything, it can be kept as it is. However, we cannot access the
animation via 'snippet-view' anymore, which is fine as I am about to
deprecate it in master.
2017-10-30 17:35:02 +01:00
Martin Trigaux 0634b04a08 [CLA] correct dxFactory CCLA
opw-778925
2017-10-30 17:18:50 +01:00
Raphael Collet 2c61c54ffa [FIX] models: nonsensical special case in CSV export (#20499)
Remove weird special case: when the first field of the first line of a one2many
is empty, replace this first field by the comma-separated names of the lines,
and discard the other lines.
2017-10-30 17:12:45 +01:00
Goffin Simon 6e06c54c8e [FIX] product: Inventory at Date does not show the correct valuation
Fine tuning of this commit: 51d072db44

When clicking on the group of the Inventory at Date, the
product.price.inventory must follow the same order as the
read_group in stock.history.

opw:747857
2017-10-30 17:02:38 +01:00
Martin Trigaux 5309ac2876 [CLA] dxFactory signs CCLA
Done at opw-778925
2017-10-30 16:49:47 +01:00
xmo-odoo 8e1ab16441 [FIX] core: mode of output file for t9n export
trans_export has been decided to use a *bytes* output buffer as some of
the output formats are text-ish (e.g. po) but others are definitely
binary content (e.g. XML). Therefore, when calling trans_export with a
*file*, it needs to be open in *binary mode*.

Fixes #20555
2017-10-30 16:18:04 +01:00
Xavier Morel e8dc72fd69 [FIX] doc: handle unknown browser globals better
Before this, if a new global was added to JS code (module toplevel,
function bodies are not considered) it would blow up when attempting
to resolve variable refs & uses.

Make the toplevel scope a defaultdict such that if e.g. a "foo" is
looked up in a module but not a local variable of that module it's
assumed to be an UnknownNS object (from which further UnknownNS can be
deref'd).
2017-10-30 16:16:41 +01:00
Géry Debongnie 3c55407f11 [FIX] web: allow dropdown selection in m2o
Before this commit, many2one fields were not (fully) usable in a list view: if
the user wrote some text, then when a dropdown with various choices
opened, pressed the 'down' key (to select a choice), the down keypress
caused a navigation move to the next line, which cancelled the
selection.

In this commit, we make the assumption that if the many2one dropdown is
opened, then navigation moves are not what the user wants.
2017-10-30 16:04:43 +01:00
qsm-odoo 9417afa4f6 [FIX] base: use email widget on contacts email fields
Before this commit, no widget was used which resulted in the emails
being able to overflow the kanban cards.
2017-10-30 14:14:44 +01:00
Webkul 467b800f5f [CLA] Webkul sing CCLA
Done at #20534
2017-10-30 13:20:10 +01:00
Nicolas Martinelli 185820e134 [FIX] google_calendar: P3 compat
In P3, `dict.keys()` returns a `dict_keys` object, which cannot be used
in a domain.

We convert to a list.

opw-779139
2017-10-30 12:37:18 +01:00
Odoo Translation Bot c7a51e69bc [I18N] Update translation terms from Transifex 2017-10-30 12:23:21 +01:00
Nicolas Martinelli bb8f41d2a6 [FIX] account_asset: do not create move
- Create an asset, post one line.
- Go back to the asset => the button is green
- Click again on the line => the button is orange

There is no protection to prevent the user to post the same entry
several times (a new account move is created every time it is clicked).

We fix the JS widget, but we add an extra layer of protection at the
Python level.

opw-778756
2017-10-30 12:21:19 +01:00
Vailiy Korobatov f476d069f4 [FIX] doc: correct view reference
Closes #20556
Closes #20557
2017-10-30 11:56:24 +01:00
Pierre Masereel 5e3b86b90c [FIX] stock,product_expiry: simple view of lots
When a lot is quick created, we don't want to be able to select a
product different than the one passed as default. So we have defined
where the product_id is readonly, and we still use the old view when a
lot is created from the menuitem lot.
2017-10-30 11:30:57 +01:00
Lucas Perais (lpe) ce8b51d867 [FIX] point_of_sale: keep keypress handler on body (barcode usability)
Commit b131e9b0ef changed the way the keypress event was bound from vanilla JS to JQuery

In the pos, since it cleans up every jquery event for performances' sake, this binding was cancelled.

This commit cleans up the cleanup process of event at pos startup and rebind the keypress event to the now clean body.

OPW 778565

[FIX] point_of_sale: barcode bindings other strategy

closes #20535
2017-10-30 11:29:42 +01:00
Martin Trigaux c3bf1618bd [FIX] auth_signup: properly display the error message
Was "('Passwords do not match; please retype them.', '')"

Introduced at 676022e3
2017-10-30 11:19:00 +01:00
qsm-odoo 81fffdbdc4 [FIX] website: restore snippet animation API
Before the website refactoring, snippet animations were cleaned thanks
to the `stop` method. As those animations are now extensions of the
standard `Widget` class, the `stop` method was replaced by the standard
`destroy` method. This was tweaked so that the $el is not removed from
the DOM, but with proper cleaning of events. However, this changed the
way the `stop` method content has to be called. Indeed, we should be
allowed to call the `_super` method and then use the $el variable.
2017-10-30 10:46:22 +01:00
Yenthe V.G a9274dcd24 [FIX] stock: typo in UserError
Closes #20565
2017-10-30 10:41:03 +01:00
Martin Trigaux e1e3b5a56e [IMP] i18n: better terms and labels
add missing string labels
rephrase the error message
add missing _description
removed forward-ported hr_equipment.pot

was unclear, courtesy of the translators
2017-10-30 10:40:01 +01:00
Arnold Moyaux ec0234e12f [FIX] stock: location created with wrong company.
When creating a new company the system will generate a
new warehouse, its location and its routes.
However the default company is the company that the user is
using.
For example user is in company_1 and creates company_2 it will create:
'company_2: Receipt in 1 step' and the company_id on it will be company_1

This commit completes the dict for create routes  in order to introduce
the key for company_id instead of using default value.
2017-10-30 09:41:02 +01:00
amoyaux faa0616fc9 [FIX] stock, mrp, stock_dropshipping: location access right
Use case to reproduce the bug:
- Enable multi company and create a second one.
- Add both company to another user and give him stock manager rights
- Login on the second user and select as active the created company
- Go to product and create one
-> access right error on stock.location.route message.

It happens because the routes 'buy' is selected by default.
However the route buy when created use the default company
although it's generic for all companies.

This commit change the data in order to remove the company on
routes buy, mto, manufacture and drop_shipping. Since this commit
was released after v11 release, it could happens that already created
database still have the problem thus the solution is to remove
manually the company on the routes quoted above.

opw-777718
2017-10-30 09:40:55 +01:00