1
# -*- encoding: utf-8 -*-
2
##############################################################################
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>
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.
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.
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/>.
23
##############################################################################
25
from osv import osv, fields
26
from tools.translate import _
29
from osv import fields
31
class product_category(osv.osv):
32
_inherit = 'product.category'
35
'ingram_code':fields.char('Ingram Code', size=64, readonly=True),
40
class product_product(osv.osv):
41
_inherit = 'product.product'
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),