mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_payment_*: 2 fixes
* Fix payment method onchange with multicompany (#374) * Add relational inverse field for payment.mode on payment.method
This commit is contained in:
committed by
Thomas Binsfeld
parent
41261490cc
commit
0dcc916fc0
@@ -4,7 +4,7 @@
|
||||
|
||||
{
|
||||
'name': 'Account Payment Mode',
|
||||
'version': '10.0.1.0.0',
|
||||
'version': '10.0.1.0.1',
|
||||
'license': 'AGPL-3',
|
||||
'author': "Akretion,Odoo Community Association (OCA)",
|
||||
'website': 'https://github.com/OCA/bank-payment',
|
||||
|
||||
@@ -22,6 +22,9 @@ class AccountPaymentMethod(models.Model):
|
||||
display_name = fields.Char(
|
||||
compute='compute_display_name',
|
||||
store=True, string='Display Name')
|
||||
payment_mode_ids = fields.One2many(
|
||||
comodel_name='account.payment.mode', inverse_name='payment_method_id',
|
||||
string='Payment modes')
|
||||
|
||||
@api.multi
|
||||
@api.depends('code', 'name', 'payment_type')
|
||||
|
||||
Reference in New Issue
Block a user