Files
Odoo-Modules/fusion_plating/fusion_plating/migrations/19.0.21.4.0/post-migrate.py
gsinghpal 8c76a16366 chore(plating): de-dash shipped code + intake-neutral customer emails
Replace em-dashes and en-dashes with hyphens across 789 shipped source
files (py/xml/js/scss) so the delivered module reads as human-written;
em-dashes had become a recognizable AI-generated tell. Internal .md dev
notes are excluded. The WO-sticker mojibake strippers keep their dash
search targets (now written — / –). No logic changes: comments
and display strings only; validated with py_compile + lxml parse.

Rewrite the 7 customer notification emails to be intake-neutral
(ship-in / drop-off / pickup) and repair-aware, and fix the Shipped
email documents line (packing slip vs bill of lading; certificate only
when issued). Subjects use a hyphen separator.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 00:16:19 -04:00

23 lines
760 B
Python

# -*- coding: utf-8 -*-
# Copyright 2026 Nexa Systems Inc.
# License OPL-1 (Odoo Proprietary License v1.0)
"""19.0.21.4.0 - Apply office-user menu visibility on -u.
post_init_hook only fires on FIRST install (CLAUDE.md Rule 13d).
This script runs the same helper on every -u so existing installs
get the menu restrictions applied without needing to uninstall +
reinstall. Idempotent - the helper checks current state and skips
already-restricted menus.
"""
import logging
from odoo.api import Environment, SUPERUSER_ID
_logger = logging.getLogger(__name__)
def migrate(cr, version):
from odoo.addons.fusion_plating import _fp_apply_office_user_menu_visibility
env = Environment(cr, SUPERUSER_ID, {})
_fp_apply_office_user_menu_visibility(env)