Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
2
upgrade_analysis/odoo_patch/addons/__init__.py
Executable file
2
upgrade_analysis/odoo_patch/addons/__init__.py
Executable file
@@ -0,0 +1,2 @@
|
||||
from . import mrp
|
||||
from . import stock
|
||||
11
upgrade_analysis/odoo_patch/addons/mrp/__init__.py
Executable file
11
upgrade_analysis/odoo_patch/addons/mrp/__init__.py
Executable file
@@ -0,0 +1,11 @@
|
||||
# flake8: noqa: B902
|
||||
from odoo.addons import mrp
|
||||
from ...odoo_patch import OdooPatch
|
||||
|
||||
|
||||
class PreInitHookPatch(OdooPatch):
|
||||
target = mrp
|
||||
method_names = ["_pre_init_mrp"]
|
||||
|
||||
def _pre_init_mrp(cr):
|
||||
"""Don't try to create an existing column on reinstall"""
|
||||
11
upgrade_analysis/odoo_patch/addons/stock/__init__.py
Executable file
11
upgrade_analysis/odoo_patch/addons/stock/__init__.py
Executable file
@@ -0,0 +1,11 @@
|
||||
# flake8: noqa: B902
|
||||
from odoo.addons import stock
|
||||
from ...odoo_patch import OdooPatch
|
||||
|
||||
|
||||
class PreInitHookPatch(OdooPatch):
|
||||
target = stock
|
||||
method_names = ["pre_init_hook"]
|
||||
|
||||
def pre_init_hook(cr):
|
||||
"""Don't unlink stock data on reinstall"""
|
||||
Reference in New Issue
Block a user