Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2691 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
led 24
3451
3
bře 25
2620
2
dub 24
1558
2
dub 24
2423
1
čvc 23
2251