mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 21:32:00 +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,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