~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to ingram/product.py

  • Committer: Raimon Esteve
  • Date: 2012-05-15 15:03:37 UTC
  • Revision ID: resteve@zikzakmedia.com-20120515150337-gpf6daojk759nygt
[DEL] ingram: removed to product_ingram

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- encoding: utf-8 -*-
2
 
##############################################################################
3
 
#
4
 
#    OpenERP, Open Source Management Solution
5
 
#    Copyright (c) 2011 Zikzakmedia S.L. (http://zikzakmedia.com) All Rights Reserved.
6
 
#                       Jesús Martín <jmartin@zikzakmedia.com>
7
 
#                       Raimon Esteve <resteve@zikzakmedia.com>
8
 
#    $Id$
9
 
#
10
 
#    This program is free software: you can redistribute it and/or modify
11
 
#    it under the terms of the GNU Affero General Public License as published by
12
 
#    the Free Software Foundation, either version 3 of the License, or
13
 
#    (at your option) any later version.
14
 
#
15
 
#    This program is distributed in the hope that it will be useful,
16
 
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 
#    GNU Affero General Public License for more details.
19
 
#
20
 
#    You should have received a copy of the GNU Affero General Public License
21
 
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
 
#
23
 
##############################################################################
24
 
 
25
 
from osv import osv, fields
26
 
from tools.translate import _
27
 
 
28
 
from osv import osv
29
 
from osv import fields
30
 
 
31
 
class product_category(osv.osv):
32
 
    _inherit = 'product.category'
33
 
    
34
 
    _columns = {
35
 
        'ingram_code':fields.char('Ingram Code', size=64, readonly=True),
36
 
    }
37
 
 
38
 
product_category()
39
 
 
40
 
class product_product(osv.osv):
41
 
    _inherit = 'product.product'
42
 
    
43
 
    _columns = {
44
 
        'ingram_sku':fields.char('Ingram SKU', size=64, readonly=True), #need this field when search product.product = product.template
45
 
        'ean13_upc':fields.char('Ingram EAN/UPC', size=64, readonly=True),
46
 
    }
47
 
 
48
 
product_product()