Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2681 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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.


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
sty 24
3430
3
mar 25
2598
2
kwi 24
1554
2
kwi 24
2405
1
lip 23
2249