old_contents: # -*- coding: utf-8 -*-
  ##############################################################################
  #
  #    OpenERP, Open Source Business Applications
  #    Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
  #
  #    This program is free software: you can redistribute it and/or modify
  #    it under the terms of the GNU Affero General Public License as
  #    published by the Free Software Foundation, either version 3 of the
  #    License, or (at your option) any later version.
  #
  #    This program is distributed in the hope that it will be useful,
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #    GNU Affero General Public License for more details.
  #
  #    You should have received a copy of the GNU Affero General Public License
  #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #
  ##############################################################################
  
  from openerp.osv import fields, orm
  
  
  class L10nItConfigSettings(orm.TransientModel):
      _name = 'l10n_it.config.settings'
      _inherit = 'res.config.settings'
  
      _columns = {
          'module_l10n_it_pec': fields.boolean(
              'Use Pec Mail in Partner Profile',
              help="""Install l10n_it_pec module for pec mail management"""
          ),
      }
  
      def create(self, cr, uid, values, context=None):
          id = super(L10nItConfigSettings, self).create(cr, uid, values, context)
          # Hack: to avoid some nasty bug, related fields are not written
          # upon record creation. Hence we write on those fields here.
          vals = {}
          for fname, field in self._columns.iteritems():
              if isinstance(field, fields.related) and fname in values:
                  vals[fname] = values[fname]
          self.write(cr, uid, [id], vals, context)
          return id
  
new_contents: # -*- coding: utf-8 -*-
  ##############################################################################
  #
  #    OpenERP, Open Source Business Applications
  #    Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
  #
  #    This program is free software: you can redistribute it and/or modify
  #    it under the terms of the GNU Affero General Public License as
  #    published by the Free Software Foundation, either version 3 of the
  #    License, or (at your option) any later version.
  #
  #    This program is distributed in the hope that it will be useful,
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #    GNU Affero General Public License for more details.
  #
  #    You should have received a copy of the GNU Affero General Public License
  #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #
  ##############################################################################
  
  from openerp.osv import fields, orm
  
  
  class L10nItConfigSettings(orm.TransientModel):
      _name = 'l10n_it.config.settings'
      _inherit = 'res.config.settings'
  
      _columns = {
          'module_l10n_it_pec': fields.boolean(
              'Use Pec Mail in Partner Profile',
              help="""Install l10n_it_pec module for pec mail management"""
          ),
      }
  
subject: remove useless method