Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2500 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 1 24
3222
3
thg 3 25
2399
2
thg 4 24
1427
2
thg 4 24
2291
1
thg 7 23
2160