summaryrefslogtreecommitdiff
path: root/setup/win32/Makefile.python
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2018-10-30 10:07:35 +0000
committerAdrian Torres <adt@odoo.com>2018-10-30 10:07:35 +0000
commit4584aed5e549b7145aa36a8e537b15615fb0f2d2 (patch)
tree1c75a2c5dfee59bd54075418a7e86f5ae70f25e8 /setup/win32/Makefile.python
parentcf866c32473b7a3cfd0b9e891650b27819dbcfee (diff)
[FIX] account: avoid computing uom price if no product
Before this commit: * Enable UOMs * Create a new invoice and invoice line * Set *only* the uom field of the invoice line * Singleton expected error This happens because the method _compute_price of `uom.uom` expects a singleton, however since no product has been defined yet, it gets an empty recordset which of course doesn't comply with self.ensure_one(), raising a Singleton Error. Functionally speaking, it makes sense to define a product before choosing an uom, however a Singleton Error is an unexpected error, so instead of doing that, we only calculate the price_unit if a product has been chosen. Fixes #28269 closes odoo/odoo#28278
Diffstat (limited to 'setup/win32/Makefile.python')
0 files changed, 0 insertions, 0 deletions