diff options
| author | Jorge Pinna Puissant <jpp@odoo.com> | 2019-05-17 12:22:58 +0000 |
|---|---|---|
| committer | Jorge Pinna Puissant <jpp@odoo.com> | 2019-05-17 13:31:44 +0000 |
| commit | 418babf7af7b52ba3aef120de9be49dea9669b74 (patch) | |
| tree | 74426b75e53b0ab542b770be850e796d62367b71 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | d48da27e641cfaf86a7f2535a6a2de3bf8d9006e (diff) | |
[FIX] account: Invoice Analysis product quantity
To calculate the product quantity and the average price, two UOM are
used: The UOM of the product, and the UOM of the invoice line.
The UOM of the product it's mandatory in the product, but the product
itself it's not mandatory in the invoice. The UOM of the invoice line
it's not mandatory.
When either of the UOM is not filled, it gives as value NULL, and gives
'empty' as result of the calculation.
Now, we use the psql function COALESCE to return '1' when one of the UOM
is not filled.
closes odoo/odoo#33465
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
