~sebastien.beau/sale-wkfl/sale-wkfl-tax-inc

« back to all changes in this revision

Viewing changes to sale_tax_inc_exc/product.py

  • Committer: Sebastien Beau
  • Date: 2013-11-14 19:28:15 UTC
  • Revision ID: sebastien.beau@akretion.com-20131114192815-gn9dvfsn122l2b7k
[FIX] missing context is None :) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        return create_id
90
90
 
91
91
    def write(self, cr, uid, ids, vals, context=None):
 
92
        if context is None:
 
93
            context = {}
92
94
        super(product_product, self).write(cr, uid, ids, vals, context=context)
93
95
        if not context.get('update_price'):
94
96
            self._update_price(cr, uid, ids, context=context)