Commit Graph
15 Commits
Author SHA1 Message Date
Adrian Torres 84b6c46943 [FIX] registry, loading: re-init inherited SQL views
Before this commit:

* Install any module that creates a SQL view and another that extends
this view.
    e.g.: sale and pos_sale for `report.all.channels.sales`.

* Uninstall the module that extended the SQL view.
    e.g.: uninstall pos_sale.

* Try to access the view from the web client -> Traceback, table not
found.

This happens because when reloading the registry, postgres drops the sql
view and it must be re-initialized.

After this commit:

We solve this issue by calculating all missing tables/views during the
uninstallation process, and re-initializing all of them right before
reloading the registry.

Also remove sql-view hacks in the modules `sale` and `sale_margin`.

Fixes #23528, #23529, #23530
2018-03-13 09:41:43 +01:00
Raphael Collet 5d3474254d [REF] registry: remove deprecated RegistryManager 2017-05-03 15:41:05 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Christophe Simonis 1730dca101 [MERGE] forward port branch 9.0 up to f3491a27a5 2017-02-23 16:51:40 +01:00
Christophe Simonis bbe7cdf05f [IMP] sale_margin: lint uninstall hook 2017-02-23 13:33:39 +01:00
Goffin Simon 36b7d980ca [FIX] sale_margin: uninstall_hook
When uninstalling the module sale_margin, the view 'sale_report' was deleted
because this view was overwritten  in this module.

But the module sale still uses the 'sale_report' view so it raised an error
each time this view was required.

opw:709328
2017-02-22 14:46:26 +01:00
Anand Kansagra 1ca86e70de [IMP] sale_margin: Migrate into new api. 2015-12-16 10:29:03 +01:00
Anand Kansagra 332aded356 [MOV] sale_margin: Re-organised file structure. 2015-12-16 10:28:14 +01:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Jitendra Prajapati 6c56e1edd3 [IMP] sale_margin: show margin on sale analysis report if sale_margin module is installed 2014-12-19 13:18:25 +01:00
Fabien Pinckaers 4fdebeef0f [IMP] removed completly false report
bzr revid: fp@tinyerp.com-20110924141451-772qbu8ipjib4ulo
2011-09-24 16:14:51 +02:00
Mustufa Rangwala a1e86e0147 [MERGE] merge MTR branch for sale related module cleaning
bzr revid: mra@mra-laptop-20100708041834-fpxlw2mypjzxcm0h
2010-07-08 09:48:34 +05:30
mtr ab25fc058f [IMP] sale_analytic_plans,sale_crm,sale_journal,sale_margin,sale_mrp:made improvements as per testing
bzr revid: mtr@mtr-20100707143823-jaoc602d1qon6rxo
2010-07-07 20:08:23 +05:30
sbh (Open ERP) a94a5a9266 [IMP] sale_margin: Move the report file in folder
bzr revid: sbh@tinyerp.com-20100603103023-u0bcuwh4fpcoswfh
2010-06-03 16:00:23 +05:30
sbh (Open ERP) cf7680410c Task-ID 880,881,883, merge sale_margin,move product_visible_discount ,merge account_invoice_salesman
bzr revid: sbh@tinyerp.com-20100603094702-9cmxsk96j6cf2wyi
2010-06-03 15:17:02 +05:30