[IMP] payment: account_move in place of account_invoice
This commit is contained in:
committed by
Damien Bouvy
parent
bea0967114
commit
03ae7e81d9
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user