Files
stock-logistics-warehouse/stock_request_submit/models/stock_request_order.py
Patrick Wilson e69e85f57d [14.0][MIG] stock_request_submit (Version 13.0 to 14.0)
[MIG] Prettier

[MIG] Rename uninstall_hook.py to hooks.py

[MIG] Added Uninstall Hook Test

[IMP] Black
2021-05-14 15:47:16 -06:00

16 lines
439 B
Python

# Copyright 2019 Open Source Integrators
# Copyright 2019-2020 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import models
class StockRequestOrder(models.Model):
_inherit = "stock.request.order"
def action_submit(self):
for line in self.stock_request_ids:
line.action_submit()
self.state = "submitted"
return True