[IMP] purchase : Improved the code.
bzr revid: mdi@tinyerp.com-20120730045626-016flwiiqh3b43cg
This commit is contained in:
parent
4de1e8a16c
commit
df01cb6bc1
|
@ -27,7 +27,7 @@ class res_partner(osv.osv):
|
|||
|
||||
def _purchase_order_count(self, cr, uid, ids, field_name, arg, context=None):
|
||||
res = {}
|
||||
for partner in self.browse(cr, uid, ids, context):
|
||||
for partner in self.browse(cr, uid, ids, context=context):
|
||||
res[partner.id] = len(partner.purchase_order_ids)
|
||||
return res
|
||||
|
||||
|
|
|
@ -107,6 +107,7 @@
|
|||
<record id="act_purchase_order_2_stock_picking_calendar" model="ir.actions.act_window.view">
|
||||
<field eval="3" name="sequence"/>
|
||||
<field name="view_mode">calendar</field>
|
||||
<field name="view_id" ref="stock.stock_picking_in_calendar"/>
|
||||
<field name="act_window_id" ref="act_purchase_order_2_stock_picking"/>
|
||||
</record>
|
||||
|
||||
|
|
Loading…
Reference in New Issue