[REM] get rid of unused attribute 'nodestroy'

This commit is contained in:
Ravi Gadhia
2015-06-08 15:25:29 +02:00
committed by Richard Mathot
parent bb6f9797a2
commit 263d869b07
13 changed files with 1 additions and 18 deletions
@@ -538,7 +538,6 @@ class account_analytic_account(osv.osv):
'context': context,
'domain' : [('order_id','in',sale_ids)],
'res_model': 'sale.order.line',
'nodestroy': True,
}
# Allows quick creation of accounts only in specific cases
@@ -644,7 +643,6 @@ class account_analytic_account(osv.osv):
'view_mode': 'tree,form',
'domain' : domain,
'res_model': 'account.analytic.line',
'nodestroy': True,
}
def _prepare_invoice_data(self, cr, uid, contract, context=None):
@@ -130,5 +130,4 @@ class account_analytic_account(osv.osv):
'view_mode': 'tree,form',
'domain' : domain,
'res_model': 'account.analytic.line',
'nodestroy': True,
}
-1
View File
@@ -718,7 +718,6 @@ class fleet_vehicle_log_contract(osv.Model):
'view_type': 'tree,form',
'res_model': 'fleet.vehicle.log.contract',
'type': 'ir.actions.act_window',
'nodestroy': True,
'domain': '[]',
'res_id': newid,
'context': {'active_id':newid},
-1
View File
@@ -364,7 +364,6 @@ class hr_expense_expense(osv.osv):
'view_id': view_id,
'res_model': 'account.move',
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'current',
'res_id': expense.account_move_id.id,
}
-1
View File
@@ -319,7 +319,6 @@ class hr_payslip(osv.osv):
'view_type': 'form',
'res_model': 'hr.payslip',
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'current',
'domain': "[('id', 'in', %s)]" % [id_copy],
'views': [(tree_res, 'tree'), (form_res, 'form')],
@@ -764,7 +764,6 @@ class marketing_campaign_workitem(osv.osv):
'views': [(view_id and view_id[1] or 0, 'form')],
'type': 'ir.actions.act_window',
'target': 'new',
'nodestroy':True,
'context': "{'template_id':%d,'default_res_id':%d}"%
(wi_obj.activity_id.email_template_id.id,
wi_obj.res_id)
-2
View File
@@ -948,7 +948,6 @@ class pos_order(osv.osv):
'view_id': False,
'context':context,
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'current',
}
return abs
@@ -1026,7 +1025,6 @@ class pos_order(osv.osv):
'res_model': 'account.invoice',
'context': "{'type':'out_invoice'}",
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'current',
'res_id': inv_ids and inv_ids[0] or False,
}
-1
View File
@@ -299,7 +299,6 @@ class project(osv.osv):
'views': [(form_view['res_id'],'form'),(tree_view['res_id'],'tree')],
'type': 'ir.actions.act_window',
'search_view_id': search_view['res_id'],
'nodestroy': True
}
# set active value for a project, its sub projects and its tasks
-1
View File
@@ -445,7 +445,6 @@ class purchase_order(osv.osv):
'res_model': 'account.invoice',
'context': "{'type':'in_invoice', 'journal_type': 'purchase'}",
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'current',
'res_id': inv_ids and inv_ids[0] or False,
}
-2
View File
@@ -214,7 +214,6 @@ class sale_order(osv.osv):
'view_mode': 'form',
'view_id': view_id,
'target': 'current',
'nodestroy': True,
}
def _track_subtype(self, cr, uid, ids, init_values, context=None):
@@ -401,7 +400,6 @@ class sale_order(osv.osv):
'res_model': 'account.invoice',
'context': "{'type':'out_invoice'}",
'type': 'ir.actions.act_window',
'nodestroy': True,
'target': 'current',
'res_id': new_inv_ids and new_inv_ids[0] or False,
}
-1
View File
@@ -1158,7 +1158,6 @@ Launch Manually Once: after having been launched manually, it sets automatically
if act_type != 'ir.actions.act_window':
return res
res.setdefault('context','{}')
res['nodestroy'] = True
# Open a specific record when res_id is provided in the context
user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
-1
View File
@@ -42,7 +42,6 @@ ACTION_DICT = {
'res_model': 'base.module.upgrade',
'target': 'new',
'type': 'ir.actions.act_window',
'nodestroy': True,
}
def backup(path, raise_exception=True):
+1 -3
View File
@@ -83,9 +83,7 @@ class res_config_configurable(osv.osv_memory):
next = self._next_action(cr, uid, context=context)
_logger.info('next action is %s', next)
if next:
res = next.action_launch(context=context)
res['nodestroy'] = False
return res
return next.action_launch(context=context)
return {
'type': 'ir.actions.client',