[FIX] Propagated ir.needaction class name change.
authorThibault Delavallée <tde@openerp.com>
Tue, 3 Apr 2012 17:21:08 +0000 (19:21 +0200)
committerThibault Delavallée <tde@openerp.com>
Tue, 3 Apr 2012 17:21:08 +0000 (19:21 +0200)
bzr revid: tde@openerp.com-20120403172108-ccvtnt512yexefe1

addons/crm/crm_lead.py
addons/crm/crm_meeting.py
addons/crm/crm_phonecall.py
addons/hr_holidays/hr_holidays.py
addons/hr_recruitment/hr_recruitment.py
addons/mrp/mrp.py
addons/project/project.py
addons/project_issue/project_issue.py
addons/purchase/purchase.py
addons/sale/sale.py

index 28830bf..00f477a 100644 (file)
@@ -40,7 +40,7 @@ class crm_lead(crm_case, osv.osv):
     _name = "crm.lead"
     _description = "Lead/Opportunity"
     _order = "priority,date_action,id desc"
-    _inherit = ['ir.needaction', 'mail.thread','res.partner']
+    _inherit = ['ir.needaction_mixin', 'mail.thread','res.partner']
 
     def _read_group_stage_ids(self, cr, uid, ids, domain, read_group_order=None, access_rights_uid=None, context=None):
         access_rights_uid = access_rights_uid or uid
index 3577be4..d3b4272 100644 (file)
@@ -42,7 +42,7 @@ class crm_meeting(crm_base, osv.osv):
     _name = 'crm.meeting'
     _description = "Meeting"
     _order = "id desc"
-    _inherit = ["calendar.event", 'ir.needaction', "mail.thread"]
+    _inherit = ["calendar.event", 'ir.needaction_mixin', "mail.thread"]
     _columns = {
         # From crm.case
         'name': fields.char('Summary', size=124, required=True, states={'done': [('readonly', True)]}),
index 26cbd7e..f63291c 100644 (file)
@@ -32,7 +32,7 @@ class crm_phonecall(crm_base, osv.osv):
     _name = "crm.phonecall"
     _description = "Phonecall"
     _order = "id desc"
-    _inherit = ['ir.needaction', 'mail.thread']
+    _inherit = ['ir.needaction_mixin', 'mail.thread']
     _columns = {
         # From crm.case
         'id': fields.integer('ID', readonly=True),
index 4dd191c..a877ed5 100644 (file)
@@ -93,7 +93,7 @@ class hr_holidays(osv.osv):
     _name = "hr.holidays"
     _description = "Leave"
     _order = "type desc, date_from asc"
-    _inherit = ['ir.needaction', 'mail.thread']
+    _inherit = ['ir.needaction_mixin', 'mail.thread']
 
     def _employee_get(self, cr, uid, context=None):
         ids = self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
index 1e261bf..c33a8b8 100644 (file)
@@ -96,7 +96,7 @@ class hr_applicant(crm.crm_case, osv.osv):
     _name = "hr.applicant"
     _description = "Applicant"
     _order = "id desc"
-    _inherit = ['ir.needaction', 'mail.thread']
+    _inherit = ['ir.needaction_mixin', 'mail.thread']
 
     def _compute_day(self, cr, uid, ids, fields, args, context=None):
         """
index 8e550ba..9ff3a64 100644 (file)
@@ -406,7 +406,7 @@ class mrp_production(osv.osv):
     _name = 'mrp.production'
     _description = 'Manufacturing Order'
     _date_name  = 'date_planned'
-    _inherit = ['ir.needaction', 'mail.thread']
+    _inherit = ['ir.needaction_mixin', 'mail.thread']
 
     def _production_calc(self, cr, uid, ids, prop, unknow_none, context=None):
         """ Calculates total hours and total no. of cycles for a production order.
index 21677a2..0335b7c 100644 (file)
@@ -53,7 +53,7 @@ class project(osv.osv):
     _name = "project.project"
     _description = "Project"
     _inherits = {'account.analytic.account': "analytic_account_id"}
-    _inherit = ['ir.needaction', 'mail.thread']
+    _inherit = ['ir.needaction_mixin', 'mail.thread']
 
     def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
         if user == 1:
@@ -500,7 +500,7 @@ class task(osv.osv):
     _description = "Task"
     _log_create = True
     _date_name = "date_start"
-    _inherit = ['ir.needaction', 'mail.thread']
+    _inherit = ['ir.needaction_mixin', 'mail.thread']
 
 
     def _resolve_project_id_from_context(self, cr, uid, context=None):
index ab1ee80..e61af23 100644 (file)
@@ -46,7 +46,7 @@ class project_issue(crm.crm_case, osv.osv):
     _name = "project.issue"
     _description = "Project Issue"
     _order = "priority, create_date desc"
-    _inherit = ['ir.needaction', 'mail.thread']
+    _inherit = ['ir.needaction_mixin', 'mail.thread']
 
     def _compute_day(self, cr, uid, ids, fields, args, context=None):
         """
index a7e5168..7e2dafc 100644 (file)
@@ -219,7 +219,7 @@ class purchase_order(osv.osv):
         ('name_uniq', 'unique(name, company_id)', 'Order Reference must be unique per Company!'),
     ]
     _name = "purchase.order"
-    _inherit = ['mail.thread']
+    _inherit = ['ir.needaction_mixin', 'mail.thread']
     _description = "Purchase Order"
     _order = "name desc"
     
@@ -649,9 +649,10 @@ class purchase_order(osv.osv):
                 wf_service.trg_validate(uid, 'purchase.order', old_id, 'purchase_cancel', cr)
         return orders_info
         
-    # -----------------------------
-    # OpenChatter and notifications
-    # -----------------------------
+    # --------------------------------------
+    # OpenChatter methods and notifications
+    # --------------------------------------
+    
     def get_needaction_user_ids(self, cr, uid, ids, context=None):
         result = dict.fromkeys(ids, [])
         for obj in self.browse(cr, uid, ids, context=context):
index e925a9c..e706701 100644 (file)
@@ -48,7 +48,7 @@ sale_shop()
 
 class sale_order(osv.osv):
     _name = "sale.order"
-    _inherit = ['mail.thread']
+    _inherit = ['ir.needaction_mixin', 'mail.thread']
     _description = "Sales Order"