[IMP] payment: account_move in place of account_invoice

This commit is contained in:
Sapan Zaveri
2019-08-23 14:23:32 +00:00
committed by Damien Bouvy
parent bea0967114
commit 03ae7e81d9
2 changed files with 3 additions and 3 deletions
@@ -15,10 +15,10 @@ class PaymentLinkWizard(models.TransientModel):
res_id = self._context.get('active_id')
res_model = self._context.get('active_model')
res.update({'res_id': res_id, 'res_model': res_model})
if res_id and res_model == 'account.invoice':
if res_id and res_model == 'account.move':
record = self.env[res_model].browse(res_id)
res.update({
'description': record.reference,
'description': record.invoice_payment_ref,
'amount': record.amount_total,
'currency_id': record.currency_id.id,
'partner_id': record.partner_id.id,
@@ -28,7 +28,7 @@
<act_window
name="Generate a Payment Link"
res_model="payment.link.wizard"
binding_model="account.invoice"
binding_model="account.move"
binding_views="form"
view_mode="form"
target="new"