Follow-up to the company-level UoM defaults commit. Wires four more
unit-bearing fields to inherit from res.company defaults at create-time.
**1. fp.bake.oven**
• New `target_temp_uom` (°F / °C) — defaults from
company.x_fc_default_temp_uom.
• View: target_temp_min / max now render with a unit picker on the
same row instead of unitless floats. Rule of thumb: "350–380 °F".
**2. fp.bake.window**
• New `bake_temp_uom` — defaults from company.x_fc_default_temp_uom.
• View: replaced hardcoded `°F` span with a live unit picker so the
label matches whatever unit was actually recorded.
**3. fp.coating.config**
• New `bake_temperature_uom` — defaults from company.
• Removed hardcoded "Bake Temperature (°F)" label; the field is
now unit-agnostic and the unit travels with the value.
**4. fp.tank.volume_uom**
• Default now derives from company.x_fc_default_volume_uom via a
small mapping (gal → gal_us, L → l, imp_gal → gal_imp). The
selection itself stays the same — tanks already supported all
common volume units; we just pre-pick the right one per company.
**Verified end-to-end** (scripts/fp_uom_smoke2.py):
• Switching company default to °C + Litres
• New oven gets C ✓
• New bake window gets C ✓
• New coating config gets C ✓
• New tank gets `l` ✓ (mapped from company `L`)
• Restored defaults afterwards
Existing records keep their stored uom — no surprise mutation.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
73 lines
2.7 KiB
Python
73 lines
2.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
|
# Part of the Fusion Plating product family.
|
|
|
|
{
|
|
'name': 'Fusion Plating — Configurator',
|
|
'version': '19.0.5.2.0',
|
|
'category': 'Manufacturing/Plating',
|
|
'summary': 'Quotation configurator with part catalog, coating configs, and formula-based pricing engine.',
|
|
'description': """
|
|
Fusion Plating — Configurator
|
|
==============================
|
|
|
|
Part of the Fusion Plating product family by Nexa Systems Inc.
|
|
|
|
Provides:
|
|
- Customer part catalog with geometry and material data
|
|
- Coating configuration templates (process, thickness, spec)
|
|
- Pre/post treatment library
|
|
- Formula-based pricing engine with complexity surcharges
|
|
- Configurator sessions that generate sale orders
|
|
- Custom sale order views with plating-specific fields
|
|
""",
|
|
'author': 'Nexa Systems Inc.',
|
|
'website': 'https://www.nexasystems.ca',
|
|
'maintainer': 'Nexa Systems Inc.',
|
|
'support': 'support@nexasystems.ca',
|
|
'license': 'OPL-1',
|
|
'price': 0.00,
|
|
'currency': 'CAD',
|
|
'depends': [
|
|
'fusion_plating',
|
|
'sale_management',
|
|
'fusion_pdf_preview',
|
|
],
|
|
'data': [
|
|
'security/fp_configurator_security.xml',
|
|
'security/ir.model.access.csv',
|
|
'data/fp_configurator_sequence_data.xml',
|
|
'data/fp_treatment_data.xml',
|
|
'views/fp_treatment_views.xml',
|
|
'views/fp_part_catalog_views.xml',
|
|
'views/fp_coating_config_views.xml',
|
|
'views/fp_pricing_rule_views.xml',
|
|
'views/fp_customer_price_list_views.xml',
|
|
'views/fp_quote_configurator_views.xml',
|
|
'views/sale_order_views.xml',
|
|
'views/res_partner_views.xml',
|
|
'views/fp_configurator_menu.xml',
|
|
'views/fp_sale_description_template_views.xml',
|
|
'wizard/fp_direct_order_wizard_views.xml',
|
|
'wizard/fp_part_catalog_import_wizard_views.xml',
|
|
'data/fp_sale_description_template_data.xml',
|
|
],
|
|
'assets': {
|
|
'web.assets_backend': [
|
|
'fusion_plating_configurator/static/src/scss/fp_3d_viewer.scss',
|
|
'fusion_plating_configurator/static/src/xml/fp_3d_viewer.xml',
|
|
'fusion_plating_configurator/static/src/js/fp_3d_viewer.js',
|
|
'fusion_plating_configurator/static/src/xml/fp_drawing_preview.xml',
|
|
'fusion_plating_configurator/static/src/js/fp_drawing_preview.js',
|
|
'fusion_plating_configurator/static/src/xml/fp_pdf_inline_preview.xml',
|
|
'fusion_plating_configurator/static/src/js/fp_pdf_inline_preview.js',
|
|
],
|
|
},
|
|
'installable': True,
|
|
'application': False,
|
|
'auto_install': False,
|
|
'post_init_hook': 'post_init_hook',
|
|
'post_load': None,
|
|
}
|