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

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
851
0
2月 24
1290
5
1月 24
6854
0
10月 23
1386
1
5月 23
2671