[FIX] models: remove call to dead method log
Also remove the flag `_log_create` that was enabling the log.
This commit is contained in:
@@ -107,7 +107,6 @@ class procurement_order(osv.osv):
|
||||
_description = "Procurement"
|
||||
_order = 'priority desc, date_planned, id asc'
|
||||
_inherit = ['mail.thread']
|
||||
_log_create = False
|
||||
_columns = {
|
||||
'name': fields.text('Description', required=True),
|
||||
|
||||
|
||||
@@ -1684,7 +1684,6 @@ class stock_move(osv.osv):
|
||||
_name = "stock.move"
|
||||
_description = "Stock Move"
|
||||
_order = 'picking_id, sequence, id'
|
||||
_log_create = False
|
||||
|
||||
def get_price_unit(self, cr, uid, move, context=None):
|
||||
""" Returns the unit price to store on the quant """
|
||||
|
||||
@@ -337,7 +337,6 @@ class BaseModel(object):
|
||||
_inherit_fields = {}
|
||||
|
||||
_table = None
|
||||
_log_create = False
|
||||
_sql_constraints = []
|
||||
|
||||
# model dependencies, for models backed up by sql views:
|
||||
@@ -4313,13 +4312,6 @@ class BaseModel(object):
|
||||
# recompute new-style fields
|
||||
recs.recompute()
|
||||
|
||||
if self._log_create and recs.env.recompute and context.get('recompute', True):
|
||||
message = self._description + \
|
||||
" '" + \
|
||||
self.name_get(cr, user, [id_new], context=context)[0][1] + \
|
||||
"' " + _("created.")
|
||||
self.log(cr, user, id_new, message, True, context=context)
|
||||
|
||||
self.check_access_rule(cr, user, [id_new], 'create', context=context)
|
||||
self.create_workflow(cr, user, [id_new], context=context)
|
||||
return id_new
|
||||
|
||||
Reference in New Issue
Block a user