summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2018-05-24 14:10:50 +0200
committerjem-odoo <jem@openerp.com>2018-05-24 16:21:06 +0200
commit919a1af93601f3873b78c755575cf0486da24e4e (patch)
treed22c7488fddf56e84520ac023947bc0bd9de3680 /odoo
parent28179bc8cb9d98a60936634e50ca733beec0393f (diff)
[FIX] purchase: correct product cost in reporting
product.product inheritS from product.template, and they both define the 'standard_price' field, but implement it differently; - product: the field is a company dependent one (so non stored) - template: the field is a computed one based on tis variants For the first case, since the field is not stored in database, when doing SQL query, we have to get the value from the table ir_property. That is what purchase report does, but instead of searching on resource 'product.product', it does it on 'product.template'. There are obviously no entries in ir_property table for 'standard_price' field on product template. As consequence, the "product value" (cost) is always null in purchase reporting. This commit fixes that by modifying SQL query to get the good value from ir_property table.
Diffstat (limited to 'odoo')
0 files changed, 0 insertions, 0 deletions