[FIX] crm_partner_assign: avoid report view deletion
The SQL view `crm_partner_report_assign` makes a join on `account_invoice_report` A column is added to `account_invoice_report` in the module `sale` (`section_id` is added to the view), making the SQL view `account_invoice_report` replaced automatically at the install/update of the `sale` module, which leads to the automatic deletion of the SQL view `crm_partner_report_assign`, because the SQL view `account_invoice_report` is altered. Therefore, after the install/update of the `sale` module, the view `crm_partner_report_assign` was deleted, and the "partnership anaylsis" unusable. This revision makes sure to init the `crm.partner.report.assign` report after every init of the `account.invoice.report`. opw-674177
This commit is contained in:
parent
05223f558d
commit
7f571f0852
|
@ -68,4 +68,11 @@ class crm_partner_report_assign(osv.osv):
|
|||
)""")
|
||||
|
||||
|
||||
class account_invoice_report(osv.osv):
|
||||
_inherit = 'account.invoice.report'
|
||||
|
||||
def init(self, cr):
|
||||
super(account_invoice_report, self).init(cr)
|
||||
self.pool['crm.partner.report.assign'].init(cr)
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
Loading…
Reference in New Issue