~enlightx-deactivatedaccount/openobject-italia/7.0-fix-1271907

« back to all changes in this revision

Viewing changes to l10n_it_sale/stock/picking.py

  • Committer: davide.corio at domsense
  • Date: 2014-01-23 12:07:06 UTC
  • Revision ID: davide.corio@domsense.com-20140123120706-cvfa9ojwr75k1d0d
[FIX] stock_picking > stock_picking_out

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        'note': fields.text('Note'),
60
60
    }
61
61
 
62
 
class stock_picking(orm.Model):
 
62
class stock_picking_out(orm.Model):
63
63
    _inherit = "stock.picking.out"
64
64
    _columns =  {
65
65
        'carriage_condition_id': fields.many2one('stock.picking.carriage_condition', 'Carriage condition'),
71
71
 
72
72
    def action_invoice_create(self, cursor, user, ids, journal_id=False,
73
73
            group=False, type='out_invoice', context=None):
74
 
        res = super(stock_picking, self).action_invoice_create(cursor, user, ids, journal_id,
 
74
        res = super(stock_picking_out, self).action_invoice_create(cursor, user, ids, journal_id,
75
75
            group, type, context)
76
76
        for picking in self.browse(cursor, user, ids, context=context):
77
77
            self.pool.get('account.invoice').write(cursor, user, res[picking.id], {
86
86
    #-----------------------------------------------------------------------------
87
87
    def copy(self, cr, uid, id, default={}, context=None):
88
88
        default.update({'ddt_number': ''})
89
 
        return super(stock_picking, self).copy(cr, uid, id, default, context)
 
89
        return super(stock_picking_out, self).copy(cr, uid, id, default, context)
90
90
 
91
91
# Redefinition of the new fields in order to update the model stock.picking in the orm
92
92
# FIXME: this is a temporary workaround because of a framework bug (ref: lp996816).