mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
14 lines
322 B
Python
14 lines
322 B
Python
import logging
|
|
|
|
from openupgradelib import openupgrade
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
|
|
@openupgrade.migrate()
|
|
def migrate(env, version):
|
|
_logger.info("Recompute reservations sale channel ids...")
|
|
env["pms.reservation"].search(
|
|
[("reservation_type", "!=", "out")]
|
|
)._compute_sale_channel_ids()
|