mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Add translatable 'label' field on payment.mode, designed to be used in invoice report
This commit is contained in:
committed by
Pedro M. Baeza
parent
3e429b4d58
commit
22cd2f3c40
@@ -25,6 +25,9 @@ from openerp import models, fields
|
||||
class PaymentMode(models.Model):
|
||||
_inherit = "payment.mode"
|
||||
|
||||
label = fields.Char(
|
||||
string='Label', translate=True,
|
||||
help="This field is designed to be used in the invoice report")
|
||||
default_payment_mode = fields.Selection([
|
||||
('same', 'Same'),
|
||||
('same_or_null', 'Same or empty'),
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
<field name="default_payment_mode"
|
||||
attrs="{'invisible': [('default_invoice', '=', False)]}"/>
|
||||
</group>
|
||||
<field name="name" position="after">
|
||||
<field name="label"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user