我有问题,有人能帮我吗?谢谢TypeError:无法创建一致的方法解析
class StockQuant(models.Model): _name = 'stock.quant' _inherit = ['stock.quant', 'mail.thread']
<blockquote\清单.py
'category': 'Report',
'version': '0.1',
# any module necessary for this one to work correctly
'depends': ['base', 'sale', 'web','mail','product','stock'],
>错误
File "odoo13sourceodoomodulesregistry.py", line 221, in load model = cls._build_model(self, cr) File "odoo13sourceodoomodels.py", line 504, in _build_model ModelClass.__bases__ = tuple(bases) TypeError: Cannot create a consistent method resolution order (MRO) for bases Model, mail.thread, stock.quant, base
这里有一个依赖循环,sales依赖于已经依赖于base和mail的sales_team,库存也已经依赖于产品。
您需要删除基础、邮件和产品。