Odoo 8 - Compute Field with “store=True” can't store in database

后端 未结 1 1371
执笔经年
执笔经年 2021-01-21 14:33

I\'m using Odoo 8 and I have a problem with compute field with type is Many2One.

Here, I declared department_id:

1条回答
  •  逝去的感伤
    2021-01-21 14:45

    The store=True works. It may be that you added the computation to the field after it was created on the database. In this case the initial computation is not triggered.

    A work around is to drop the column from the table and then upgrade your module. When the field is recreated the initial values should be computed.

    0 讨论(0)
提交回复
热议问题