Skip to content
Snippets Groups Projects
  1. Jul 11, 2014
  2. Jul 10, 2014
  3. Jul 08, 2014
    • Martin Trigaux's avatar
      [FIX] orm: better removal of custom m2m fields · 84e9a67c
      Martin Trigaux authored
      orm: do not try to create ir.model.relation for custom m2m as self._module is either empty (for custom models), either the one of the last inheriting module (which is wrong). The field should be removed manually and should not be impacted by the uninstallation of modules. The removal of the relation table can be done when removing manually the custom field (see rev 6af3193d).
      
      ir.model: when removing a model, drop the table with the CASCADE instruction. This will remove left constraints from remaining m2m tables.
      This means that dropping a table (either manually removing a custom model or uninstalling a module) will not drop the relation table for a custom m2m field. This is not ideal but better than the previous behaviour (which was to fail the DROP TABLE instruction and keep the table with a few columns and unconsistent data).
      84e9a67c
    • Martin Trigaux's avatar
      [FIX] ir.model.fields: better unlink · 6af3193d
      Martin Trigaux authored
      When droping a column, remove also the relation table in case of custom m2m field.
      The relation table needs to be dropped otherwise an unremovable constraint to the targetted table is kept (and anyway is not needed anymore).
      6af3193d
  4. Jul 07, 2014
  5. Jul 06, 2014
  6. Jul 04, 2014
  7. Jul 03, 2014
  8. Jul 02, 2014
  9. Jul 01, 2014
  10. Jun 29, 2014
  11. Jun 27, 2014
  12. Jun 26, 2014
Loading