【发布时间】:2014-11-21 15:54:34
【问题描述】:
我定义了以下两个 odoo ORM 模型:
class Weekday(models.Model):
_name = 'ludwik.offers.weekday'
name = fields.Char()
class Duration(models.Model):
_name = 'ludwik.offers.duration'
weekday = fields.Many2many('ludwik.offers.weekday')
当我尝试启动 odoo 时,我收到以下消息:
ProgrammingError: relation "ludwik_offers_duration_ludwik_offers_weekday_rel_ludwik_offers_" already exists
另外,当我更改模型中的_name 属性时,问题仍然存在(当然错误消息中的关系名称会更改以反映重命名),所以它不像只是与一些已经存在的旧关系发生冲突在数据库中。
【问题讨论】:
标签: python postgresql openerp relationship odoo