107 lines
4.6 KiB
XML
107 lines
4.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2026 Nexa Systems Inc.
|
|
License OPL-1 (Odoo Proprietary License v1.0)
|
|
Part of the Fusion Plating product family.
|
|
-->
|
|
<odoo>
|
|
|
|
<record id="view_fp_value_set_list" model="ir.ui.view">
|
|
<field name="name">fp.value.set.list</field>
|
|
<field name="model">fusion.plating.value.set</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Value Sets">
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
<field name="value_count"/>
|
|
<field name="is_primary" widget="boolean_toggle"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
<field name="active" widget="boolean_toggle"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_fp_value_set_form" model="ir.ui.view">
|
|
<field name="name">fp.value.set.form</field>
|
|
<field name="model">fusion.plating.value.set</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Value Set">
|
|
<header/>
|
|
<sheet>
|
|
<widget name="web_ribbon" title="Primary" bg_color="text-bg-success" invisible="not is_primary"/>
|
|
<widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
|
|
<div class="oe_title">
|
|
<label for="name"/>
|
|
<h1><field name="name" placeholder="e.g. Our Way, Core Fundamentals"/></h1>
|
|
<div class="text-muted">
|
|
<field name="code" placeholder="our_way"/>
|
|
</div>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
<field name="is_primary"/>
|
|
</group>
|
|
<group>
|
|
<field name="value_count"/>
|
|
<field name="active" widget="boolean_toggle"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Description">
|
|
<field name="description" placeholder="What does this set represent? How does the shop use it?"/>
|
|
</page>
|
|
<page string="Values">
|
|
<field name="value_ids" context="{'default_set_id': id}">
|
|
<list editable="bottom">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="number"/>
|
|
<field name="name"/>
|
|
<field name="icon"/>
|
|
<field name="color" widget="color_picker" optional="show"/>
|
|
<field name="recognition_count" optional="hide"/>
|
|
<field name="active" widget="boolean_toggle"/>
|
|
</list>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<chatter/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_fp_value_set_search" model="ir.ui.view">
|
|
<field name="name">fp.value.set.search</field>
|
|
<field name="model">fusion.plating.value.set</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Value Sets">
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
<filter string="Primary" name="primary" domain="[('is_primary', '=', True)]"/>
|
|
<filter string="Archived" name="archived" domain="[('active', '=', False)]"/>
|
|
<group>
|
|
<filter string="Company" name="group_company" context="{'group_by': 'company_id'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_fp_value_set" model="ir.actions.act_window">
|
|
<field name="name">Value Sets</field>
|
|
<field name="res_model">fusion.plating.value.set</field>
|
|
<field name="view_mode">list,form</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Create your shop's first value set
|
|
</p>
|
|
<p>
|
|
A value set is your shop's named collection of fundamentals,
|
|
core behaviours, or beliefs. Nothing ships pre-loaded — each
|
|
shop defines its own.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|