Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3597 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
jun 25
808
0
feb 24
1254
5
ene 24
6799
0
oct 23
1364
1
may 23
2643