跳至内容
菜单
此问题已终结
2 回复
2703 查看

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.

形象
丢弃
编写者 最佳答案

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.


形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
4
1月 24
3488
3
3月 25
2652
2
4月 24
1567
2
4月 24
2443
1
7月 23
2254