[trunk/7.0] uninstalling a module removes sql views, breaks reporting system

Bug #1253148 reported by PabloCM
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Medium
OpenERP's Framework R&D

Bug Description

Version: 7.0 2013-11-04 nightly build 002515
Description:
Currently, when you uninstall a module that creates a db view (eg: sale_stock/report/sale_report.py) it removes the view. Since db view inheritance is non existent, those modules who add fields to an existent report (sale_stock does that) break the report when uninstalled.
How to reproduce:
1- Create an empty db
2- Install sale, install stock
3- Go to Settings->Configuration->Sales and uncheck "Trigger delivery orders automatically from sales orders". This will uninstall the module sale_stock
4- Go to Report->Sales->Sales Analysis and you will receive an error because the db view the report model is based on has been deleted from the db

Maybe it's a lack of a working report inheritance system more than a simple bug, but currently it is generating malfunction in a "release" version.

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
summary: - [7.0] uninstalling a module removes sql views, breaks reporting system
+ [trunk/7.0] uninstalling a module removes sql views, breaks reporting
+ system
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.