From 131f91db15ea658df19003a4e37fe22a8655e927 Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Thu, 8 May 2014 09:59:57 +0200 Subject: [PATCH] [IMP] change claim_count in claim_count_out (addon claim_from_delivery) also, simplify the implementation. The empty method _claim_count in stock_picking_out is due to the weird way inheritance works in openerp, and the fact that stock.picking.out only call the method in its parent bzr revid: ged@openerp.com-20140508075957-lyqvng5i155b28cy --- addons/claim_from_delivery/claim_delivery_view.xml | 2 +- addons/claim_from_delivery/stock_picking.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/claim_from_delivery/claim_delivery_view.xml b/addons/claim_from_delivery/claim_delivery_view.xml index 852d602c269..6f9ca5e4a66 100644 --- a/addons/claim_from_delivery/claim_delivery_view.xml +++ b/addons/claim_from_delivery/claim_delivery_view.xml @@ -18,7 +18,7 @@
diff --git a/addons/claim_from_delivery/stock_picking.py b/addons/claim_from_delivery/stock_picking.py index 9c3121d067c..3a3404bfa93 100644 --- a/addons/claim_from_delivery/stock_picking.py +++ b/addons/claim_from_delivery/stock_picking.py @@ -12,15 +12,15 @@ class stock_picking(osv.osv): } _columns = { - 'claim_count': fields.function(_claim_count, string='Claims', type='integer'), + 'claim_count_out': fields.function(_claim_count, string='Claims', type='integer'), } class stock_picking_out(osv.osv): _inherit = 'stock.picking.out' def _claim_count(self, cr, uid, ids, field_name, arg, context=None): - return super(stock_picking_out, self)._claim_count(cr, uid, ids, field_name, arg, context=context) + pass _columns = { - 'claim_count': fields.function(_claim_count, string='Claims', type='integer'), + 'claim_count_out': fields.function(_claim_count, string='Claims', type='integer'), }