mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
16 lines
460 B
Python
16 lines
460 B
Python
# Copyright 2019 Open Source Integrators
|
|
# Copyright 2019 Eficent Business and IT Consulting Services, S.L.
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
|
from odoo import api, models
|
|
|
|
|
|
class StockRequestOrder(models.Model):
|
|
_inherit = "stock.request.order"
|
|
|
|
@api.multi
|
|
def action_submit(self):
|
|
for line in self.stock_request_ids:
|
|
line.action_submit()
|
|
self.state = "submitted"
|
|
return True
|