Community mailing list archives

community@mail.odoo.com

Re: Remove Many2Many relation

by
Elico Corporation, Eric Caudal
- 08/26/2016 21:51:15

Mucher simpler for some cases:


* Export the data (list of cities) via interface

* Export the res.partners cities id

* use Excel to replace the id in partners with the data (city name)

* remove your module

* import back the data

--
Eric Caudal [Founder and CEO]
Skype: elico.corp. Phone: + 86 186 2136 1670 (Cell), + 86 21 6211 8017/27/37 (Office)
Elico Shanghai (Hong Kong/Shenzhen/Singapore) Odoo Gold Partner, best Odoo Partner 2014 for APAC
On 08/26/2016 11:08 PM, Moises Lopez wrote:

You can create a migration script.

See examples https://github.com/OCA/OpenUpgrade/tree/8.0/addons/sale/migrations/8.0.1.0


El 26/08/2016 7:32 a.m., "Juan Plaza" <juanegor@infosis.cl> escribió:
I installed a module that change res.partner city to Many2Many field, I need to change it to char field again, how I can remove a Many2Many relation without lost integrity?.

Thanks for your help

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe