mirror of
https://github.com/bringout/oca-warehouse.git
synced 2026-04-18 06:02:01 +02:00
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
11 lines
458 B
Python
11 lines
458 B
Python
# Copyright 2019-2020 ForgeFlow S.L. (https://www.forgeflow.com)
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
from odoo import SUPERUSER_ID, api
|
|
|
|
|
|
def uninstall_hook(cr, registry):
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
sr = env["stock.request"].search([("state", "=", "submitted")])
|
|
sr.write({"state": "draft"})
|
|
sro = env["stock.request.order"].search([("state", "=", "submitted")])
|
|
sro.write({"state": "draft"})
|