mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Add patch issue7881002_1.diff to recover uninstall module
This commit is contained in:
parent
591b036a7d
commit
1277f65a63
2 changed files with 32 additions and 0 deletions
31
issue7881002_1.diff
Normal file
31
issue7881002_1.diff
Normal file
|
@ -0,0 +1,31 @@
|
|||
# HG changeset patch
|
||||
# User Guillem Barba <guillembarba@gmail.com>
|
||||
recover uninstall modules feature
|
||||
|
||||
issue322
|
||||
review7881002
|
||||
|
||||
Index: trytond/trytond/modules/__init__.py
|
||||
===================================================================
|
||||
|
||||
--- a/trytond/trytond/modules/__init__.py
|
||||
+++ b/trytond/trytond/modules/__init__.py
|
||||
@@ -222,7 +222,7 @@
|
||||
if package_state not in ('to install', 'to upgrade'):
|
||||
if package_state == 'installed':
|
||||
package_state = 'to upgrade'
|
||||
- else:
|
||||
+ elif package_state != 'to remove':
|
||||
package_state = 'to install'
|
||||
for child in package.childs:
|
||||
module2state[child.name] = package_state
|
||||
@@ -258,6 +258,8 @@
|
||||
Translation = pool.get('ir.translation')
|
||||
Translation.translation_import(lang2, module, filename)
|
||||
|
||||
+ if package_state == 'to remove':
|
||||
+ continue
|
||||
cursor.execute(*ir_module.select(ir_module.id,
|
||||
where=(ir_module.name == package.name)))
|
||||
try:
|
||||
|
1
series
1
series
|
@ -36,3 +36,4 @@ timesheet_f8c45f1b4d7d.patch
|
|||
sale_fix_invoiced_quantity_calculation.diff
|
||||
|
||||
purchase_shipment_cost.diff
|
||||
issue7881002_1.diff
|
||||
|
|
Loading…
Reference in a new issue