Hi all,
I am newbie so excuse me for my mistakes
i want to create a custom postgresql view when i install my custom view
i use a code like :
@api.model_cr
def init(self):
tools.drop_view_if_exists(self._cr, 'report_sql_test')
self._cr.execute("""CREATE or REPLACE VIEW report_sql_test AS (SELECT MIN(id) as id, product_id as product_id From table1) """)
i got the error model_cr not recognized even if a used
from openerp import api, fields, models,tools
please help me on how can i do it
Many thanks