Possib le to make an address unactive ?

Asked by forstera

Hello all,
I just received a request from our secretary about the following problem. They've an old invoice address for a partner that need to be replaced. The problem is that they cannot remove this 'old' address because it is linked to invoices. So, we decided to create a new 'invoice' address but now we've 2 invoice address type.
So, is there a way to make an address unactive (greyed out) that can be used anymore ? if not, do you think it could be a good thing to allow that ?

Thanks for your help
Arnaud

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ravindra Mekhiya(OpenERP) (rme-openerp) said :
#1

Hello Arnaud,

There are tricks you can use for your issue and I assure you it will work for you.
I see two scenarios:

A. You want all invoices to have the new address:

Follow these steps:
1. Go to the Address from Menu Partners/Partner Address.
2. Duplicate the address.
3. Modify the Original address,make it a new one.
4. This way, you have 2 addresses : new address,Old address(it will have a new id,as its duplicated).

The reason why we did the above procedure is,the invoices have the foreign key reference of old address,we simply replaced the address by new one, so DB remains as it is, address changes.

B. You want New invoices to have the new address:

Follow these steps:
1. Go to the Address from Menu Partners/Partner Address.
2. Change the type of address to OTHER or something that is not Invoice.
3. Add a new address,make it of type invoice.
4. This way, The Old invoices still refer to the old address , and new invoices will refer to new invoice address and DB has the entries of both.

Let me know if you still need more clarifications.
Hope this helps.
Thanks.

Can you help with this problem?

Provide an answer of your own, or ask forstera for more information if necessary.

To post a message you must log in.