Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 odoo 上有一个用于安排约会的表格,用户单击一个按钮来搜索可用的约会空档。
单击按钮时,模型被保存,这就是 odoo 的工作方式,我无法解决这个问题。
但是如果用户放弃安排约会,模型已经保存......所以如果用户离开表单或点击“取消”,我需要从数据库中删除它。
我该怎么做?
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.
active
ir.cron
Hope you get the idea