~serpent-consulting-services/openerp-usa/fix-shipping_api_ups_cc

« back to all changes in this revision

Viewing changes to account_payment_creditcard/sale.py

  • Committer: npgllc
  • Author(s): Serpent-Consulting-Services
  • Date: 2012-08-14 13:32:19 UTC
  • mfrom: (73.1.16 openerp-usa)
  • Revision ID: npgllc-20120814133219-z4lvfyiw1ggsy0sx
[IMP]: all modules related to credit card functionality

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
                'default_type':'receipt',
85
85
                'default_journal_id':user.company_id.cc_journal_id and user.company_id.cc_journal_id.id or False,
86
86
                'default_invoice_id':invoice_id,
 
87
                'type': 'receipt',
 
88
                'sale_id':ids[0]
87
89
                }
88
90
        }
89
91
 
206
208
    _defaults = {
207
209
                  'cc_ship_refund': lambda * a : False,
208
210
                  'payment_method': lambda * a: 'cc_pre_auth'
209
 
                  }
 
211
    }
 
212
    
210
213
    def action_ship_create(self, cr, uid, ids, *args):
211
214
        ret = super(sale_order, self).action_ship_create(cr, uid, ids, args)
212
215
        for sale_obj in self.browse(cr, uid, ids, context={}):