mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-21 20:02:00 +02:00
12 lines
321 B
Python
12 lines
321 B
Python
# Copyright 2023 Quartile Limited
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import models
|
|
|
|
|
|
class StockPicking(models.Model):
|
|
_inherit = "stock.picking"
|
|
|
|
def button_validate(self):
|
|
self = self.with_context(validate_analytic=True)
|
|
return super().button_validate()
|