Odoo 继承website_sale模块下controllers中的main,重写方法始终掉不起来
-
本来是打算重写网站website_sale模块中controllers文件夹中的类方法,但是继承始终不生效,下面重写的方法始终进不去,
有能看出异常的大神吗?
# -- coding: utf-8 --
import dotop
from dotop import http
from dotop.http import request
import dotop.addons.website_sale.controllers.main
class website_sale(dotop.addons.website_sale.controllers.main.website_sale):
def checkout_values(self, data=None):
cr, uid, context, registry = request.cr, request.uid, request.context, request.registry
orm_partner = registry.get('res.partner')
orm_user = registry.get('res.users')
orm_country = registry.get('res.country')
state_orm = registry.get('res.country.state')
orm_res_branch = registry.get('res.branch') -
类都还没继承,怎么重写。。。