[IMP] needaction after mail.thread
bzr revid: fp@tinyerp.com-20120822153145-g7xopqq7oje7y60c
This commit is contained in:
parent
e30fed20b8
commit
b531d9cff1
|
@ -43,7 +43,7 @@ class crm_meeting(base_state, osv.Model):
|
|||
_name = 'crm.meeting'
|
||||
_description = "Meeting"
|
||||
_order = "id desc"
|
||||
_inherit = ["calendar.event", 'ir.needaction_mixin', "mail.thread"]
|
||||
_inherit = ["calendar.event", "mail.thread", 'ir.needaction_mixin']
|
||||
_columns = {
|
||||
# base_state required fields
|
||||
'create_date': fields.datetime('Creation Date', readonly=True),
|
||||
|
|
|
@ -38,7 +38,7 @@ class crm_lead(base_stage, osv.osv):
|
|||
_name = "crm.lead"
|
||||
_description = "Lead/Opportunity"
|
||||
_order = "priority,date_action,id desc"
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = ['mail.thread','ir.needaction_mixin']
|
||||
|
||||
def _get_default_section_id(self, cr, uid, context=None):
|
||||
""" Gives default section by checking if present in the context """
|
||||
|
|
|
@ -47,7 +47,7 @@ class event_event(osv.osv):
|
|||
_name = 'event.event'
|
||||
_description = __doc__
|
||||
_order = 'date_begin'
|
||||
_inherit = ['ir.needaction_mixin','mail.thread']
|
||||
_inherit = ['mail.thread','ir.needaction_mixin']
|
||||
|
||||
def name_get(self, cr, uid, ids, context=None):
|
||||
if not ids:
|
||||
|
|
|
@ -94,7 +94,7 @@ class hr_holidays(osv.osv):
|
|||
_name = "hr.holidays"
|
||||
_description = "Leave"
|
||||
_order = "type desc, date_from asc"
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = [ 'mail.thread','ir.needaction_mixin']
|
||||
|
||||
def _employee_get(self, cr, uid, context=None):
|
||||
ids = self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
|
||||
|
|
|
@ -95,7 +95,7 @@ class hr_applicant(base_stage, osv.Model):
|
|||
_name = "hr.applicant"
|
||||
_description = "Applicant"
|
||||
_order = "id desc"
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||
|
||||
def _get_default_department_id(self, cr, uid, context=None):
|
||||
""" Gives default department by checking if present in the context """
|
||||
|
|
|
@ -407,7 +407,7 @@ class mrp_production(osv.osv):
|
|||
_name = 'mrp.production'
|
||||
_description = 'Manufacturing Order'
|
||||
_date_name = 'date_planned'
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||
|
||||
def _production_calc(self, cr, uid, ids, prop, unknow_none, context=None):
|
||||
""" Calculates total hours and total no. of cycles for a production order.
|
||||
|
|
|
@ -66,7 +66,7 @@ class project(osv.osv):
|
|||
_description = "Project"
|
||||
_inherits = {'account.analytic.account': "analytic_account_id",
|
||||
"mail.alias": "alias_id"}
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||
|
||||
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
|
||||
if user == 1:
|
||||
|
@ -544,7 +544,7 @@ class task(base_stage, osv.osv):
|
|||
_name = "project.task"
|
||||
_description = "Task"
|
||||
_date_name = "date_start"
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||
|
||||
def _get_default_project_id(self, cr, uid, context=None):
|
||||
""" Gives default section by checking if present in the context """
|
||||
|
|
|
@ -46,7 +46,7 @@ class project_issue(base_stage, osv.osv):
|
|||
_name = "project.issue"
|
||||
_description = "Project Issue"
|
||||
_order = "priority, create_date desc"
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||
|
||||
def _get_default_project_id(self, cr, uid, context=None):
|
||||
""" Gives default project by checking if present in the context """
|
||||
|
|
|
@ -220,7 +220,7 @@ class purchase_order(osv.osv):
|
|||
('name_uniq', 'unique(name, company_id)', 'Order Reference must be unique per Company!'),
|
||||
]
|
||||
_name = "purchase.order"
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||
_description = "Purchase Order"
|
||||
_order = "name desc"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ import decimal_precision as dp
|
|||
class purchase_requisition(osv.osv):
|
||||
_name = "purchase.requisition"
|
||||
_description="Purchase Requisition"
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||
_columns = {
|
||||
'name': fields.char('Requisition Reference', size=32,required=True),
|
||||
'origin': fields.char('Source', size=32),
|
||||
|
|
|
@ -48,7 +48,7 @@ sale_shop()
|
|||
|
||||
class sale_order(osv.osv):
|
||||
_name = "sale.order"
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||
_description = "Sales Order"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue