Skip to content
Snippets Groups Projects
Commit 42047965 authored by Ravish Murari's avatar Ravish Murari Committed by Richard Mathot
Browse files

[IMP] procurement: display number of procurements in exception

parent d6fe36f1
Branches
Tags
No related merge requests found
......@@ -106,7 +106,7 @@ class procurement_order(osv.osv):
_name = "procurement.order"
_description = "Procurement"
_order = 'priority desc, date_planned, id asc'
_inherit = ['mail.thread']
_inherit = ['mail.thread','ir.needaction_mixin']
_log_create = False
_columns = {
'name': fields.text('Description', required=True),
......@@ -146,6 +146,9 @@ class procurement_order(osv.osv):
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'procurement.order', context=c)
}
def _needaction_domain_get(self, cr, uid, context=None):
return [('state', '=', 'exception')]
def unlink(self, cr, uid, ids, context=None):
procurements = self.read(cr, uid, ids, ['state'], context=context)
unlink_ids = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment