~vauxoo/addons-vauxoo/7.0_test_hr_expense_dev_jorge

« back to all changes in this revision

Viewing changes to product_customer_code/product.py

  • Committer: Julio Serna
  • Date: 2012-08-02 16:46:29 UTC
  • mto: This revision was merged to the branch mainline in revision 378.
  • Revision ID: julio@vauxoo.com-20120802164629-gp1xzxcthnho5gdd
[IMP][product_customer_code] added condition if to default in copy

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    }
35
35
    
36
36
    def copy(self, cr, uid, id, default=None, context=None):
 
37
        if not default:
 
38
            default = {}
37
39
        default['product_customer_code_ids'] = False
38
40
        res = super(product_product, self).copy(cr,uid,id,default=default,context=context)
39
41
        return res