Per-company default for which editor opens for new recipes / recipes with preferred_editor=auto. Defaults to 'tree' to preserve existing behavior. Surfaces in Settings → Fusion Plating → Recipe Editor. Naming follows the existing x_fc_* convention used throughout res_company.py for company-level Fusion Plating defaults. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
96 lines
5.7 KiB
XML
96 lines
5.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
|
|
<!--
|
|
Fusion Plating — Settings page block.
|
|
|
|
Inherits the standard Settings form. The `app` element creates a
|
|
Fusion Plating section in the left rail; downstream modules
|
|
(certificates, invoicing, etc.) extend the same `app` with extra
|
|
blocks via xpath into //app[@name='fusion_plating'].
|
|
-->
|
|
<record id="res_config_settings_view_form_fp_core" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.fusion.plating.core</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form" position="inside">
|
|
<app data-string="Fusion Plating" string="Fusion Plating"
|
|
name="fusion_plating"
|
|
groups="fusion_plating.group_fusion_plating_manager">
|
|
<block title="Regional Settings"
|
|
name="fp_regional_settings"
|
|
help="Defaults applied to dashboards, reports, and emails when a user has no personal preference set.">
|
|
<setting id="fp_default_timezone"
|
|
string="Default Timezone"
|
|
help="Timezone used to display times in dashboards, PDFs, and notification emails. Detected automatically when Fusion Plating is installed; change it any time. Individual users can still override this from their own profile (Preferences > Localization).">
|
|
<field name="x_fc_default_tz"/>
|
|
</setting>
|
|
</block>
|
|
|
|
<block title="Workforce Settings"
|
|
name="fp_workforce_settings"
|
|
help="Defaults that govern how the shop tracks worker skills and promotions across recipes.">
|
|
<setting id="fp_default_mastery"
|
|
string="Default Mastery Threshold"
|
|
help="How many successful WO completions an operator needs on a new task before it's added to their Shop Roles automatically. Each role can override this on its own form (e.g. masking 1, electroless nickel 5).">
|
|
<field name="x_fc_default_mastery_threshold"/>
|
|
</setting>
|
|
</block>
|
|
|
|
<block title="Recipe Editor"
|
|
name="fp_recipe_editor_settings"
|
|
help="Choose which editor opens when a recipe is created or when a recipe's editor preference is 'Auto'.">
|
|
<setting id="fp_default_recipe_editor"
|
|
string="Default Recipe Editor"
|
|
help="Tree Editor: hierarchical drag-drop tree with sub-processes (existing). Simple Editor: flat ordered list with a step library on the side (Steelhead-style). Per-recipe preferred_editor (tree/simple) overrides this default.">
|
|
<field name="x_fc_default_recipe_editor"/>
|
|
</setting>
|
|
</block>
|
|
|
|
<block title="Units of Measure"
|
|
name="fp_uom_settings"
|
|
help="Default units used wherever the shop records measurements. North-American aerospace shops typically pick °F + mils; metric shops pick °C + microns. Each new record (work order, oven, bath log, thickness reading) inherits these defaults; per-record overrides remain possible.">
|
|
<setting id="fp_default_temp_uom"
|
|
string="Temperature"
|
|
help="Bake temps, oven setpoints, bath temperatures.">
|
|
<field name="x_fc_default_temp_uom"/>
|
|
</setting>
|
|
<setting id="fp_default_thickness_uom"
|
|
string="Thickness"
|
|
help="Coating spec targets and Fischerscope readings.">
|
|
<field name="x_fc_default_thickness_uom"/>
|
|
</setting>
|
|
<setting id="fp_default_volume_uom"
|
|
string="Volume"
|
|
help="Bath volumes and chemical addition logs.">
|
|
<field name="x_fc_default_volume_uom"/>
|
|
</setting>
|
|
<setting id="fp_default_mass_uom"
|
|
string="Mass"
|
|
help="Chemical doses, parts weight, waste manifests.">
|
|
<field name="x_fc_default_mass_uom"/>
|
|
</setting>
|
|
<setting id="fp_default_pressure_uom"
|
|
string="Pressure"
|
|
help="Compressed-air pressure, agitation, filtration.">
|
|
<field name="x_fc_default_pressure_uom"/>
|
|
</setting>
|
|
<setting id="fp_default_current_density_uom"
|
|
string="Current Density"
|
|
help="Electrolytic plating bath current density.">
|
|
<field name="x_fc_default_current_density_uom"/>
|
|
</setting>
|
|
<setting id="fp_default_area_uom"
|
|
string="Area"
|
|
help="Part surface area, masking area.">
|
|
<field name="x_fc_default_area_uom"/>
|
|
</setting>
|
|
</block>
|
|
</app>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|