diff options
| author | Joren Van Onder <jov@odoo.com> | 2016-06-01 09:37:30 +0200 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2016-06-01 10:34:40 +0200 |
| commit | b698caf42e8abe369dc14450d4d76ee83e5a76cd (patch) | |
| tree | 0c121318f55db429c90a88867828bdedc29f192d | |
| parent | 8706ab4f134117fb631785e3f9fc3da245230167 (diff) | |
[FIX] point_of_sale: apply extended cash box behavior properly
Normally when you manually add or remove money from the cashbox the
reference on the bank statement line should be set to the name of the
session. But because the wrong function names where used this didn't
happen. Introduced by f5ad25168674e33149f4371ac0115b1f5bd9e6f3.
Fixes #12224
| -rw-r--r-- | addons/point_of_sale/wizard/pos_box.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/point_of_sale/wizard/pos_box.py b/addons/point_of_sale/wizard/pos_box.py index e013aea3167..6e93a760b57 100644 --- a/addons/point_of_sale/wizard/pos_box.py +++ b/addons/point_of_sale/wizard/pos_box.py @@ -29,12 +29,12 @@ class PosBox(CashBox): class PosBoxIn(PosBox): _inherit = 'cash.box.in' - def _compute_values_for_statement_line(self, cr, uid, box, record, context=None): + def _calculate_values_for_statement_line(self, cr, uid, id, record, context=None): if context is None: context = {} - values = super(PosBoxIn, self)._compute_values_for_statement_line(cr, uid, box, record, context=context) + values = super(PosBoxIn, self)._calculate_values_for_statement_line(cr, uid, id, record, context=context)[0] active_model = context.get('active_model', False) or False active_ids = context.get('active_ids', []) or [] @@ -49,8 +49,8 @@ class PosBoxIn(PosBox): class PosBoxOut(PosBox): _inherit = 'cash.box.out' - def _compute_values_for_statement_line(self, cr, uid, box, record, context=None): - values = super(PosBoxOut, self)._compute_values_for_statement_line(cr, uid, box, record, context=context) + def _calculate_values_for_statement_line(self, cr, uid, id, record, context=None): + values = super(PosBoxOut, self)._calculate_values_for_statement_line(cr, uid, id, record, context=context)[0] active_model = context.get('active_model', False) or False active_ids = context.get('active_ids', []) or [] |
