[REF] models: do vacuum of transient models by cron only

This commit is contained in:
Raphael Collet
2017-07-10 15:02:44 +02:00
parent 711455f9b9
commit ffd93a9937
-4
View File
@@ -3300,10 +3300,6 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})):
@api.model
def _create(self, vals):
# low-level implementation of create()
if self.is_transient():
self._transient_vacuum()
# data of parent records to create or update, by model
tocreate = {
parent_model: {'id': vals.pop(parent_field, None)}