1

我在 odoo 上有一个用于安排约会的表格,用户单击一个按钮来搜索可用的约会空档。

单击按钮时,模型被保存,这就是 odoo 的工作方式,我无法解决这个问题。

但是如果用户放弃安排约会,模型已经保存......所以如果用户离开表单或点击“取消”,我需要从数据库中删除它。

我该怎么做?

4

1 回答 1

1

A nice work around is to use The active field if this field is False Odoo by default will not show this record. and you can register a ir.cron to delete this records or leave them.

Hope you get the idea

于 2018-03-18T18:49:53.427 回答