web client and export to excel show different results - VERY GRAVE
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
the following setup:
def _get_expense_
res = {}
for product in self.browse(cr, uid, ids, context=context):
return res
....
after installing weblcient and excel show the same result
after updateing the expense account in product_category the web client uses the updated account from category , export to excel uses the stored value
I admit it's a programming error hence I changed
def _get_product_
_logger = logging.
return product_ids
again the web client displays the correct account and Excel export something else
to inspect
select name_template , expense_
it turnes out that the stored field expense_account_id never changes
apparently only the property gets updated but not the stored field
To reproduce
install new db with warehouse
all moves are created with date=today
* warehouse / inventory control / Location structure
choose physical location / Your company
* To date = yesterday (don't forget to click another field to make the date available )
result -> all products on hand are 0 - correct
now export data
result -> products have a quantity on hand (using all stock_move data available)
THIS IS A MAJOR ISSUE !!!!
users can not know which data are computed function fields and which are stored values.
user must be able to rely on WYSIWYG - it's accounting not gambling