Skip to Content
Menu
This question has been flagged
1 Reply
2492 Views

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
0
Feb 24
218
5
Jan 24
4868
0
Oct 23
336
1
May 23
1208
2
Dec 22
10330