[IMP] purchase: Improve the tooltips and view
bzr revid: sbh@tinyerp.com-20100917123657-yjfi18gvyn1308lk
This commit is contained in:
@@ -45,7 +45,7 @@ class purchase_order_group(osv.osv_memory):
|
||||
res = super(purchase_order_group, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False)
|
||||
if context.get('active_model','') == 'purchase.order' and len(context['active_ids']) < 2:
|
||||
raise osv.except_osv(_('Warning'),
|
||||
_('Please select multiple order inventories to merge in the list view.'))
|
||||
_('Please select multiple order Order to merge in the list view.'))
|
||||
return res
|
||||
def merge_orders(self, cr, uid, ids, context):
|
||||
"""
|
||||
|
||||
@@ -35,7 +35,7 @@ class purchase_requisition(osv.osv):
|
||||
'date_start': fields.datetime('Requisition Date'),
|
||||
'date_end': fields.datetime('Requisition Deadline'),
|
||||
'user_id': fields.many2one('res.users', 'Responsible'),
|
||||
'exclusive': fields.selection([('exclusive','Purchase Requisition (exclusive)'),('multiple','Multiple Requisitions')],'Requisition Type', required=True, help="Purchase Requisition (exclusive): On the confirmation of a purchase order, it cancels the remaining purchase order.\nPurchase Requisition(Multiple): It allows to have multiple purchase orders.On confirmation of a purchase order it does not cancel the remaining orders"""),
|
||||
'exclusive': fields.selection([('exclusive','Purchase Requisition (exclusive)'),('multiple','Multiple Requisitions')],'Requisition Type', required=True, help="Purchase Requisition (exclusive): On the confirmation of a purchase order, it cancels the remaining purchase order.\nPurchase Requisition(Multiple): It allows to have multiple purchase orders.On confirmation of a purchase order it does not cancel the remaining orders"""),
|
||||
'description': fields.text('Description'),
|
||||
'company_id': fields.many2one('res.company', 'Company', required=True),
|
||||
'purchase_ids' : fields.one2many('purchase.order','requisition_id','Purchase Orders',states={'done': [('readonly', True)]}),
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
<field name="type">tree</field>
|
||||
<field name="model">purchase.requisition</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree colors="grey:state in ('done');red:(state not in ('cancel','done')) and date_end > current_date" string="Purchase Requisition">
|
||||
<tree colors="grey:state in ('done');red:date_end<current_date and state not in ('done','cancel');black:date_planned>=current_date;" string="Purchase Requisition">
|
||||
<field name="name"/>
|
||||
<field name="user_id"/>
|
||||
<field name="date_start"/>
|
||||
|
||||
Reference in New Issue
Block a user