Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2683 Vistas

I have been asked to add a field named Payment Date in  Accounting App > Customers > Invoice list view, where it has to display the date when the payment was made. 


I tried it in studio: with account.move (Accounting - model) and account.payment (Payment - model)


1. Created a many to one relation field to make relation with account.payment model

2. Created a related field and related it with account.payment.date and saved it


I went and refreshed the view and there was no data displayed. How to do it in the right way?


Note: New to Odoo, Odoo 15 web, Thanks in advance for your kind gesture.

Avatar
Descartar
Autor Mejor respuesta

Thank You for your response, I have tried it, and the field is created in the view, but there is no data populated it's all empty. 

All I need to do is (in Odoo 15 web): 

When we make payment in Register Payment, 

We get this Payment date right? 

I need this payment date as a field, in accounting app > customers > Invoices(view) with data being populated. 
So that, I would know when the payment is made.

If it is possible, kindly guide me with, 


Thank You in Advance.


Avatar
Descartar
Mejor respuesta

Hi,
Make sure to update the related field in Odoo Studio by setting its relation to payment_id.date. This establishes the link between the 'account.move' model and the 'account.payment' model, allowing the Payment Date information to be correctly retrieved and displayed in the Invoice list view.


Hope it helps

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
ene 24
3441
3
mar 25
2604
2
abr 24
1557
2
abr 24
2412
1
jul 23
2251