mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
- split values for create in dedicated function - post messages on MO with modified qty - split MOs on create only on procurements
14 lines
398 B
Python
14 lines
398 B
Python
# Copyright 2023 Camptocamp SA
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
|
from odoo import api, models
|
|
|
|
|
|
class StockRule(models.Model):
|
|
_inherit = "stock.rule"
|
|
|
|
@api.model
|
|
def _run_manufacture(self, procurements):
|
|
return super(
|
|
StockRule, self.with_context(_split_create_values_for_auto_validation=True)
|
|
)._run_manufacture(procurements)
|