mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] make account_payment_shortcut installable so default Invoices will
be selected in wizard
This commit is contained in:
@@ -194,4 +194,11 @@ class payment_order_create(orm.TransientModel):
|
||||
or line.journal_id.currency.id
|
||||
or line.journal_id.company_id.currency_id.id),
|
||||
}, context=context)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
return {'name': _('Payment Orders'),
|
||||
'context': context,
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form,tree',
|
||||
'res_model': 'payment.order',
|
||||
'res_id': context['active_id'],
|
||||
'type': 'ir.actions.act_window',
|
||||
}
|
||||
|
||||
@@ -29,5 +29,5 @@
|
||||
'description': '''
|
||||
When composing a payment order, select all candidates by default (in the second step of the "Select invoices to pay" wizard).
|
||||
''',
|
||||
'installable': False,
|
||||
'installable': True,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user