From 39c88d09229dbd7cfb3b13b823afe00dcd638f80 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 16 Apr 2013 15:26:21 +0200 Subject: [PATCH] [IMP] account: cash.box.in defines its _columns, do the same for cash.box.out. This is needed to solve an inheritance problem when adding a superclass `base.model` (I guess this is related to the fact some code in the orm does a copy from the class to the instance). bzr revid: vmt@openerp.com-20130416132621-xo0lckimczqpvyos --- addons/account/wizard/pos_box.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/wizard/pos_box.py b/addons/account/wizard/pos_box.py index 1d6d13e140b..874a8e3b7c9 100644 --- a/addons/account/wizard/pos_box.py +++ b/addons/account/wizard/pos_box.py @@ -67,6 +67,8 @@ class CashBoxIn(CashBox): class CashBoxOut(CashBox): _name = 'cash.box.out' + _columns = CashBox._columns.copy() + def _compute_values_for_statement_line(self, cr, uid, box, record, context=None): amount = box.amount or 0.0 return {