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

« back to all changes in this revision

Viewing changes to account_payment_creditcard/account_voucher.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:
67
67
        return False
68
68
 
69
69
    def cc_refund(self, cr, uid, ids, context=None):
70
 
        self.do_transaction(cr, uid, ids, refund=True,context=context)
 
70
#        self.do_transaction(cr, uid, ids, refund=True,context=context)
71
71
        return True
72
72
 
73
73
    def _get_zip(self, cr, uid, ids, zip_id, context={}):
222
222
        'cc_auth_code':fields.char('Authorization Code', size=32),
223
223
        'cc_save_card_details':fields.boolean('Save Credit Card details'),
224
224
        'cc_ecommerce_sale':fields.boolean('Ecommerce sale'),
225
 
        'cc_p_authorize':fields.boolean('pre-authorize'),
226
 
        'cc_charge':fields.boolean('charge'),
 
225
        'cc_p_authorize':fields.boolean('Pre-authorize'),
 
226
        'cc_charge':fields.boolean('Charge'),
227
227
        'cc_info_hide':fields.boolean('Credit Info Hide'),
228
228
        'cc_status':fields.text('Status Message'),
229
229
        'cc_details_autofill':fields.boolean('Credit Card Details Auto Fill'),
240
240
        'cc_p_authorize': lambda * a: True,
241
241
    }
242
242
 
243
 
 
244
243
    def onchange_cc_details(self, cr, uid, ids, cc_details, context={}):
245
244
        dic = {}
246
245
        if cc_details:
250
249
            dic['cc_e_d_year'] = bank.cc_e_d_year
251
250
            dic['cc_number'] = bank.cc_number
252
251
            dic['cc_v'] = bank.cc_v
253
 
        return{'value':dic}
 
252
        return {'value':dic}
254
253
 
255
254
    def onchange_partner_id(self, cr, uid, ids, partner_id, journal_id, price, currency_id, ttype, date, context={}, sale_id=False):
256
255
        res = super(account_voucher, self).onchange_partner_id(cr, uid, ids, partner_id, journal_id, price, currency_id, ttype, date, context=context)