mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-22 01:32:04 +02:00
10 lines
289 B
Python
10 lines
289 B
Python
from odoo import SUPERUSER_ID, api
|
|
|
|
|
|
def migrate(cr, version):
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
buffers = env["stock.buffer"].search(
|
|
[("buffer_profile_id.item_type", "=", "distributed")]
|
|
)
|
|
if buffers:
|
|
buffers._calc_distributed_source_location()
|