[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:
Akim Juillerat
2017-08-28 18:38:17 +02:00
committed by Thomas Binsfeld
parent 41261490cc
commit 0dcc916fc0
2 changed files with 4 additions and 1 deletions

View File

@@ -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',

View File

@@ -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')