~anna-g/micronaet/anna

« back to all changes in this revision

Viewing changes to base_import_micronaet/product.py

  • Committer: Anna Micronaet
  • Date: 2013-07-18 09:08:36 UTC
  • Revision ID: anna@micronaet.it-20130718090836-ssmst48rrnvcd69w
Tolti tutti i moduli

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- encoding: utf-8 -*-
2
 
##############################################################################
3
 
#
4
 
#    OpenERP module
5
 
#    Copyright (C) 2010 Micronaet srl (<http://www.micronaet.it>) 
6
 
#    
7
 
#    Italian OpenERP Community (<http://www.openerp-italia.com>)
8
 
#
9
 
#############################################################################
10
 
#
11
 
#    OpenERP, Open Source Management Solution   
12
 
#    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
13
 
#    $Id$
14
 
#
15
 
#    This program is free software: you can redistribute it and/or modify
16
 
#    it under the terms of the GNU General Public License as published by
17
 
#    the Free Software Foundation, either version 3 of the License, or
18
 
#    (at your option) any later version.
19
 
#
20
 
#    This program is distributed in the hope that it will be useful,
21
 
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 
#    GNU General Public License for more details.
24
 
#
25
 
#    You should have received a copy of the GNU General Public License
26
 
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
27
 
#
28
 
##############################################################################
29
 
 
30
 
from osv import osv, fields
31
 
 
32
 
class product_product_extra_fields(osv.osv):
33
 
    _name='product.product'
34
 
    _inherit ='product.product'
35
 
 
36
 
    _columns = {
37
 
               'import' : fields.boolean('Imported', required=False), 
38
 
               'mexal_id' : fields.char('Product mexal ID', size=20, required=False, readonly=False),  
39
 
               }
40
 
product_product_extra_fields()
41
 
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: