~serpent-consulting-services/openerp-usa/cim-SerpentCS

« back to all changes in this revision

Viewing changes to account_payment_creditcard/stock_picking.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:
27
27
 
28
28
    _inherit = "stock.picking"
29
29
    '''
30
 
    Adding credit card preautohrised and payed check box on delivery order
 
30
    Adding credit card preauthorised and payed check box on delivery order
31
31
    '''
32
32
    def _get_sale_order(self, cr, uid, ids, context={}):
33
33
        result = []
44
44
    _columns = {
45
45
        'cc_pre_auth':  fields.related('sale_id', 'cc_pre_auth', string='CC Pre-authorised', type='boolean'),
46
46
        'invoiced':  fields.related('sale_id', 'invoiced', string='Paid', type='boolean'),
 
47
        'invoice_state': fields.selection([
 
48
            ("invoiced", "Invoiced"),
 
49
            ("2binvoiced", "To Be Invoiced"),
 
50
            ("none", "Not Applicable"),
 
51
            ("credit_card", "Credit Card"),
 
52
            ("cc_refund", "Credit Card Refund")
 
53
            ], "Invoice Control",  select=True, required=True, readonly=True, states={'draft': [('readonly', False)]}),
47
54
    }
48
55
 
49
56
stock_picking()