old_contents: from osv import osv, fields
  from openerp.tools.translate import _
  
  class spree_product(osv.osv):
      _name="product.product"
      _inherit="product.product"
      
      def _get_default_code(self, cr, uid, context=None):
          print context
          return self.pool.get('product.product').read(cr, uid, context['id'], ['default_code'])['default_code']
          
      _columns = {
          'waiting_spree_import': fields.boolean('Waiting spree import', required=False),
          'permalink': fields.char('Spree permalink', required=False)
      }
      
      _defaults = {
          'waiting_spree_import': True,
          #'permalink': lambda s,cr,uid, c: s._get_default_code(cr, uid, context=c) or ''
      }
  
  spree_product()
  
  
  class spree_stock_picking(osv.osv):
      _name="stock.picking"
      _inherit="stock.picking"
      
      _columns = {
          'shipment_reported_spree': fields.boolean('Shipment reported to Spree', required=False),
      }
      
      _defaults = {
          'shipment_reported_spree': False,
      }
      
  spree_stock_picking()
new_contents: from osv import osv, fields
  from openerp.tools.translate import _
  
  class spree_product(osv.osv):
      _name="product.product"
      _inherit="product.product"
      
      def _get_default_code(self, cr, uid, context=None):
          print context
          return self.pool.get('product.product').read(cr, uid, context['id'], ['default_code'])['default_code']
          
      _columns = {
          'waiting_spree_import': fields.boolean('Waiting spree import', required=False),
          'permalink': fields.char('Spree permalink', required=False)
      }
      
      _defaults = {
          'waiting_spree_import': True,
          #'permalink': lambda s,cr,uid, c: s._get_default_code(cr, uid, context=c) or ''
      }
  
  spree_product()
  
  
  class spree_stock_picking_out(osv.osv):
      _name="stock.picking.out"
      _inherit="stock.picking.out"
      
      _columns = {
          'shipment_reported_spree': fields.boolean('Shipment reported to Spree', required=False),
      }
      
      _defaults = {
          'shipment_reported_spree': False,
      }
      
  spree_stock_picking_out()
  
  class spree_stock_picking(osv.osv):
      _name="stock.picking"
      _inherit="stock.picking"
      
      _columns = {
          'shipment_reported_spree': fields.boolean('Shipment reported to Spree', required=False),
      }
      
      _defaults = {
          'shipment_reported_spree': False,
      }
      
  spree_stock_picking()
subject: change field from stock.picking.out to stock.picking