Commit Graph
113649 Commits
Author SHA1 Message Date
Nicolas Martinelli 084dbf9b8f [FIX] stock: inventory adjustment
The inventory adjustment form is not suitable for large inventories.

First, a list view embedded in a form view is not convenient since it
doesn't provide any search capabilities. The user has to rely on the
search feature of the browser, which has restricted features in
comparison to the Odoo search field.

Then, the existing onchange mechanism coupled with computed fields
triggers heavy computations impacting all lines each time a single
line is modified. This leads to a hanging page for every inventory line
modification, which causes a non-negligeable loss of time.

This commit introduces a new tree view for inventory lines, accessible
thanks to a stat button on the inventory page. This button is available
in debug mode, if the inventory is in state 'Confirmed'. The tree view
contains the same fields than the tree view embedded in the form view,
without the flaws of the latter.

opw-760614
2017-11-03 09:54:30 +01:00
Andrew Latham 5aebc22722 [FIX] account: correct English mistakes
From #20652 taking visible strings to 11.0
2017-11-03 09:18:56 +01:00
xmo-odoo b62bb5add2 IAP doc: tutorial (#20317)
* [ADD] doc: iap tutorial

Should be easier to approach than the raw APIDoc. 
contains:
- overview of the flow
- tutorial (coalroller) with guidelines
- technical description of objects/helpers
2017-11-02 19:06:33 +01:00
qsm-odoo 9818f1c535 [FIX] web_editor: allow selecting an uploaded img without crash
Somehow, fixing multi selection with https://github.com/odoo/odoo/commit/e011d58bee140411ccfb1ef9115dddc090d573c3
broke the use of the image upload button combined with no selected
image at the beginning.
2017-11-02 17:02:00 +01:00
Martin Geubelle 3e63f01cf1 [FIX] web: FieldSelector: add model in field attributes
The key `model` was missing in the FieldSelector selected fields.
The model can be useful for example to create a one2many related field.
2017-11-02 16:02:11 +01:00
Simon Lejeune b2466c80ae [FIX] mrp: default view of stock move line
This view was introduced by rev[1] to be more adequate in the usecase
of the finished move line in mrp. A priority was not set and thus it
became the default view for stock move line, even in the stock
application. Moreover, it used a field only used in mrp in a domain
resulting traceback when displayed in the context of stock.

[1] f6c89de81e

Fixes #20610
2017-11-02 15:33:47 +01:00
Moises Lopez - https://www.vauxoo.com/ 534f91d496 [I18N] base_vat: VAT Translation for es_MX
Closes #20613
2017-11-02 15:26:45 +01:00
Martin Trigaux a7fda25301 [FIX] mrp: unclear label
Missing verb or something
Courtesy of Translators
2017-11-02 15:19:01 +01:00
Yenthe V.G 112ed4f54d [FIX] base: correct typo
Closes #20601
2017-11-02 13:57:01 +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
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
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
Lucas Perais (lpe) 8e95ee6843 [FIX] website_sale: website_public_price computation not necessarily depends on a request
Before this commit, when trying to access website_public_price from the backend (when adding this field to a view for example), a traceback saying that the website attribute on the request object was non existent was raised.

After this commit, we control for this and the field displays correctly

OPW 778586

closes #20536
2017-10-30 09:35:22 +01:00
Lucas Perais (lpe) f41690538d [FIX] point_of_sale: date string ECMA 5.1 in Date()
Before this commit, when opening the POS in IE11, then the customer list, the list was empty.
This was due to condition that was wrongly evaluated as false due to the fact that IE11 apparently only wants ECMA5.1 to deal with constructing Date() from a string.

After this commit, we construct the Date() object with the right string, and the list of customers doesn't disappear.

OPW 776463

For reference:
http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15

closes #20468
2017-10-30 09:25:29 +01:00
Odoo Translation Bot 76408ecdd7 [I18N] Update translation terms from Transifex 2017-10-29 04:30:55 +01:00
Géry Debongnie f14aab1827 [FIX] crm: update domain to new views
When evaluating a domain, each x2many in the evaluation context is
actually replaced by a list of ids.  However, previously, it was actually a
list of commands.  The list of ids is much better, since it does not
depends on the exact commands that were generated.
2017-10-27 16:00:16 +02:00
Christophe Simonis 1a93e8285a [FIX] website_mail_channel: adapt test 2017-10-27 15:12:50 +02:00