mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 12:52:05 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
from . import mrp
|
||||
from . import point_of_sale
|
||||
from . import sale_quotation_builder
|
||||
from . import stock
|
||||
|
|
@ -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"""
|
||||
|
|
@ -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"""
|
||||
|
|
@ -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"""
|
||||
|
|
@ -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"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue