Root cause: pricing.rule records had currency_id=NULL because the
default=lambda only applies on new records. Monetary fields without a
currency silently render as plain numbers — no $ symbol.
Fixes:
1. currency_id now required=True on fp.pricing.rule, fp.treatment,
fp.customer.price.list, fp.quote.configurator, fusion.plating.quote.request
— so it can never be missing going forward.
2. post_init_hook + matching backfill helper in
fusion_plating_configurator/__init__.py pins the company currency
on any existing records that were created before the required flag.
Ran on upgrade → all 4 pricing.rule rows now have CAD/$.
3. Flipped two remaining Float money fields to Monetary:
- fp.job.consumption.unit_cost and total_cost (were Float digits=4/2)
- (mrp.workorder.x_fc_workcenter_cost_hour stays Float — it is a
related field from core mrp.workcenter.costs_hour which is Float)
4. Every Monetary field reference in views now has explicit:
widget="monetary" options="{'currency_field': 'currency_id'}"
Previously Odoo's default rendering dropped the $ in some contexts.
Touched: fp_pricing_rule_views (list + form), fp_treatment_views,
fp_customer_price_list_views (already done), fp_quote_configurator_views
(list + form shipping/delivery/calculated/override), fp_quote_request_views
(list + form), fp_job_consumption_views, mrp_production_views job-costing
group, direct-order wizard (already done earlier).
5. Unit / % suffix polish as we went: rush_surcharge_percent shows "%",
default_duration_minutes shows "min" on treatment form, treatment list
labels duration column.
Verified: all 4 pricing rules now render "$0.45", "$0.85" etc; 62 records
across 6 models all have currency_id populated; zero remaining Float $
fields in the codebase.
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.2.0.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,
|
|
}
|