[IMP] payment: added sequence and order on payment acquirer model.
This commit is contained in:
committed by
Thibault Delavallée
parent
fa75094e6f
commit
14ebbf6c61
@@ -51,6 +51,7 @@ class PaymentAcquirer(osv.Model):
|
||||
"""
|
||||
_name = 'payment.acquirer'
|
||||
_description = 'Payment Acquirer'
|
||||
_order = 'sequence'
|
||||
|
||||
def _get_providers(self, cr, uid, context=None):
|
||||
return []
|
||||
@@ -87,6 +88,7 @@ class PaymentAcquirer(osv.Model):
|
||||
'fees_dom_var': fields.float('Variable domestic fees (in percents)'),
|
||||
'fees_int_fixed': fields.float('Fixed international fees'),
|
||||
'fees_int_var': fields.float('Variable international fees (in percents)'),
|
||||
'sequence': fields.integer('Sequence', help="Determine the display order"),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
<field name="model">payment.acquirer</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Payment Acquirers">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="name"/>
|
||||
<field name="provider"/>
|
||||
<field name="website_published"/>
|
||||
|
||||
Reference in New Issue
Block a user