Nicolas Martinelli 07da48216f [FIX] stock_account: coherent field type
In case `move_line_ids.location_id.company_id` or
`move_line_ids.location_dest_id.company_id` is not set, the fallback
value is `False`. Indeed:

```
>>> True and False or True
True
```

This makes `company_from.id` or `company_to.id` crash.

We keep the logic but change the condition:

```
>>> False if True else True
False
```

opw-2045628

closes odoo/odoo#35695

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-08-13 13:05:01 +00:00
2019-08-12 10:22:32 +00:00
2019-08-12 07:24:37 +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%