跳至內容
選單
此問題已被標幟
1 回覆
3642 瀏覽次數

Hello, in Odoo 14 Cloud, I'm trying to figure out how to view the invoices associated with an archived customer.  To replicate my issue:

1. Archive a customer that has invoices associated

2. In Contacts module, apply the Archived filter to locate the archived customer, then open the record

3. Select the "Invoiced" tab at the top.  There are no records shown even though the customer does have invoices.  By default, a filter of "Not Paid" is applied. Clear all filters.  The invoices are still not shown. 


I have found two ways I can view the invoices on archived customers:

1. Go into Invoicing module and filter by the customer's name.  We could do it this way but it would be more efficient to do it directly from the contact record if that's where the inquiry started. 

2. Unarchive the customer then click the "Invoiced" tab from within the customer record.  I'd rather not do this because people will invariably forget to re-archive the customer when they're done with their inquiry. 


Am I missing something/doing something wrong? Is there in fact a way to view invoices on archived customers directly from the contact record?  Thanks

頭像
捨棄
最佳答案

Hello Kylie Grant,

There is no direct way to view invoices on archived customers directly from the contact record.

You can customise the below method to achieve this:
Path: addons/account/models/partner.py
Method: action_view_partner_invoices
Please add with_context(active_test=False) in second line of the above method like this:
action = self.env["ir.actions.actions"].with_context(active_test=False)._for_xml_id("account.action_move_out_invoice_type")

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
6月 25
873
0
2月 24
1310
5
1月 24
6920
0
10月 23
1403
1
5月 23
2693