mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Take into account the review of @yvaucher
This commit is contained in:
committed by
Enric Tobella
parent
8736d5722f
commit
5b0e29c80e
@@ -97,7 +97,7 @@ class AccountPaymentLine(models.Model):
|
||||
@api.onchange('partner_id')
|
||||
def partner_id_change(self):
|
||||
partner_bank = False
|
||||
if self.partner_id and self.partner_id.bank_ids:
|
||||
if self.partner_id.bank_ids:
|
||||
partner_bank = self.partner_id.bank_ids[0]
|
||||
self.partner_bank_id = partner_bank
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ class AccountPaymentLineCreate(models.TransientModel):
|
||||
def populate(self):
|
||||
domain = self._prepare_move_line_domain()
|
||||
lines = self.env['account.move.line'].search(domain)
|
||||
self.move_line_ids = [(6, 0, lines.ids)]
|
||||
self.move_line_ids = lines
|
||||
action = {
|
||||
'name': _('Select Move Lines to Create Transactions'),
|
||||
'type': 'ir.actions.act_window',
|
||||
|
||||
Reference in New Issue
Block a user