[IMP] upgrade_analysis: fix reinstall of sale_quotation_builder

pull/2825/head
Stefan Rijnhart 2024-02-02 20:29:37 +01:00
parent 02a1964ff0
commit 3a39c2a3dd
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +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 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"""