~jan-philipp-fischer/openerp-connector-magento/7.0-invoice-payment-method

« back to all changes in this revision

Viewing changes to magentoerpconnect/payment_invoice.py

  • Committer: Jan-Philipp Fischer
  • Author(s): guewen.baconnier at camptocamp
  • Date: 2014-03-19 10:49:22 UTC
  • mfrom: (942.1.2 7.0-invoice-payment-method)
  • Revision ID: jan-philipp.fischer@greencoding.de-20140319104922-0mijymk70pkepmwj
cleanings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from osv import osv, fields
2
 
 
3
 
class payment_invoice(osv.Model):
4
 
        _inherit = "payment.method"
5
 
        
6
 
        _columns = {
7
 
                'create_invoice_on': fields.selection(
 
1
# -*- coding: utf-8 -*-
 
2
from openerp.osv import orm, fields
 
3
 
 
4
 
 
5
class payment_invoice(orm.Model):
 
6
    _inherit = "payment.method"
 
7
 
 
8
    _columns = {
 
9
        'create_invoice_on': fields.selection(
8
10
            [('open', 'Validate'),
9
11
             ('paid', 'Paid')],
10
12
            'Create invoice on action',
11
13
            help="Should the invoice be created in Magento "
12
 
                 "when it is validated or when it is paid in OpenERP? If nothing is set, Create invoice on action falls back to Store Options."),
13
 
                }
 
 
b'\\ No newline at end of file'
 
14
                 "when it is validated or when it is paid in OpenERP?\n"
 
15
                 "If nothing is set, the option falls back to the same option "
 
16
                 "on the Magento store related to the sales order."),
 
17
    }