[FIX]purchase: remove unneeded variable and fix action view domain of rfq/po
bzr revid: csn@openerp.com-20130729101637-av2v35rkcbhx80cf
This commit is contained in:
parent
973185a728
commit
f64240af45
|
@ -525,7 +525,6 @@ class purchase_order(osv.osv):
|
|||
if not len(ids):
|
||||
return False
|
||||
self.write(cr, uid, ids, {'state':'draft','shipped':0})
|
||||
wf_service = netsvc.LocalService("workflow")
|
||||
self.set_order_line_status(cr, uid, ids, 'draft', context=context)
|
||||
for p_id in ids:
|
||||
# Deleting the existing instance of workflow for PO
|
||||
|
|
|
@ -367,7 +367,7 @@
|
|||
<field name="res_model">purchase.order</field>
|
||||
<field name="view_mode">tree,form,graph,calendar</field>
|
||||
<field name="context">{}</field>
|
||||
<field name="domain">[('state','not in',('draft','sent','bid'))]</field>
|
||||
<field name="domain">[('state','not in',('draft','sent','bid', 'confirmed'))]</field>
|
||||
<field name="search_view_id" ref="view_purchase_order_filter"/>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
|
|
Loading…
Reference in New Issue