mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
15 lines
451 B
Python
15 lines
451 B
Python
# Copyright 2023 Ecosoft Co., Ltd. (https://ecosoft.co.th)
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import api, models
|
|
|
|
|
|
class StockRequestOrder(models.Model):
|
|
_inherit = "stock.request.order"
|
|
|
|
@api.model
|
|
def create(self, vals):
|
|
seq = self.env["ir.sequence.option.line"].get_sequence(self.new(vals))
|
|
self = self.with_context(sequence_option_id=seq.id)
|
|
return super().create(vals)
|