~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to product_customer_code/product.py

  • Committer: Julio Serna
  • Date: 2012-08-15 00:12:31 UTC
  • mto: This revision was merged to the branch mainline in revision 400.
  • Revision ID: julio@vauxoo.com-20120815001231-qzqdor142ggeajub
[INIT] added module purchase_order_cancel

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        'product_customer_code_ids': fields.one2many('product.customer.code', 'product_id', 'Customer Codes'),
34
34
    }
35
35
    
 
36
    def copy(self, cr, uid, id, default=None, context=None):
 
37
        if not default:
 
38
            default = {}
 
39
        default['product_customer_code_ids'] = False
 
40
        res = super(product_product, self).copy(cr,uid,id,default=default,context=context)
 
41
        return res
 
42
    
36
43
    def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=80):
37
44
        res = super(product_product, self).name_search(cr, user, name, args, operator, context, limit)
38
45
        if not context: