Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions

View file

@ -0,0 +1,4 @@
from . import mrp
from . import point_of_sale
from . import sale_quotation_builder
from . import stock

View 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"""

View file

@ -0,0 +1,13 @@
# flake8: noqa: B902
from odoo import api
from odoo.addons.point_of_sale.models import pos_config
from ...odoo_patch import OdooPatch
class PreInitHookPatch(OdooPatch):
target = pos_config.PosConfig
method_names = ["post_install_pos_localisation"]
@api.model
def post_install_pos_localisation(cr):
"""Do not configure twice pos_localisation"""

View file

@ -0,0 +1,11 @@
# flake8: noqa: B902
from odoo.addons import sale_quotation_builder
from ...odoo_patch import OdooPatch
class PreInitHookPatch(OdooPatch):
target = sale_quotation_builder
method_names = ["_pre_init_sale_quotation_builder"]
def _pre_init_sale_quotation_builder(cr):
"""Don't pre-create existing columns on reinstall"""

View 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"""