Nicolas Lempereur 7a5f1068fa [FIX] stock: return's return ok package location
If we create a package X transfering from location A to location B:

- we create a stock.quant for package X in location B

=> The package is on location "B" (OK)

If then we do a transfer of that package from location B to location A:

- we set the location B / package X quant to 0 size
- we create a stock.quant for package X in location A

=> The package is on location "A" (OK)

If then we do a transfer of that package from location A to location B:

- we set the location A / package X quant to 0 size
- we set the location B / package X quant to package size

=> The package still is on location "A" (wrong)

This is because:

- since c0d7a05730 stock.quant.package field `quant_ids` is a view over
  related stock.quant but filtered on domain:
     ['|', ('quantity', '!=', 0), ('reserved_quantity', '!=', 0)]

- stock.quant.package fields `location_id`, `company_id`, `owner_id` are
  updated when a related stock.quant has fields `package_id`,
  `location_id`, `company_id`, `owner_id` modified

Thus when the `quant_ids` change by changing quantities, `location_id`
are not updated even if it should be.

opw-1963509
closes #32466

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-04-05 13:38:16 +00:00
…
2019-04-04 19:49:37 +00:00
…
…
…
2019-03-13 15:10:02 +00:00
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

Then follow the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%