← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 853198] [NEW] modifying columns which are included in a view fails

 

Public bug reported:

Example

DETAIL: cannot alter type of a column used by a view or rule DETAIL:
rule _RETURN on view hr_expense_report depends on column "unit_amount"

IMHO if this type of error occurs the dependent view must be deleted using 
- tools.drop_view_if_exists(cr, 'hr_expense_report')
and the operation must be reexecuted to allow clean automated installation

otherwise the
- tools.drop_view_if_exists(cr, 'hr_expense_report')
has to be included in a module which is installed independant  of the one creating the view.
which has some advantages for the devloper to know but

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/853198

Title:
  modifying columns which are included in a view fails

Status in OpenERP Server:
  New

Bug description:
  Example

  DETAIL: cannot alter type of a column used by a view or rule DETAIL:
  rule _RETURN on view hr_expense_report depends on column "unit_amount"

  IMHO if this type of error occurs the dependent view must be deleted using 
  - tools.drop_view_if_exists(cr, 'hr_expense_report')
  and the operation must be reexecuted to allow clean automated installation

  otherwise the
  - tools.drop_view_if_exists(cr, 'hr_expense_report')
  has to be included in a module which is installed independant  of the one creating the view.
  which has some advantages for the devloper to know but

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/853198/+subscriptions


Follow ups

References