Files
Odoo-Modules/fusion-plating/fusion_plating_culture/views/fp_value_rotation_views.xml
gsinghpal be611876ad changes
2026-04-12 09:09:50 -04:00

85 lines
3.5 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_rotation_list" model="ir.ui.view">
<field name="name">fp.value.rotation.list</field>
<field name="model">fusion.plating.value.rotation</field>
<field name="arch" type="xml">
<list string="Rotations">
<field name="name"/>
<field name="set_id"/>
<field name="rotation_period"/>
<field name="current_value_id"/>
<field name="last_rotation_date"/>
<field name="next_rotation_date"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="active" widget="boolean_toggle"/>
</list>
</field>
</record>
<record id="view_fp_value_rotation_form" model="ir.ui.view">
<field name="name">fp.value.rotation.form</field>
<field name="model">fusion.plating.value.rotation</field>
<field name="arch" type="xml">
<form string="Rotation">
<header>
<button name="action_advance"
type="object"
string="Advance Now"
class="btn-primary"
invisible="not active"/>
</header>
<sheet>
<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. Weekly Fundamental"/></h1>
</div>
<group>
<group>
<field name="set_id"/>
<field name="rotation_period"/>
<field name="company_id" groups="base.group_multi_company"/>
</group>
<group>
<field name="current_value_id"/>
<field name="last_rotation_date"/>
<field name="next_rotation_date"/>
<field name="active" widget="boolean_toggle"/>
</group>
</group>
<p class="text-muted mt-3">
This module does not ship an ir.cron — wire one to
<code>fusion.plating.value.rotation._cron_advance_rotation</code>
if you want automatic advancement, or click
<em>Advance Now</em> manually at a stand-up.
</p>
</sheet>
<chatter/>
</form>
</field>
</record>
<record id="action_fp_value_rotation" model="ir.actions.act_window">
<field name="name">Rotations</field>
<field name="res_model">fusion.plating.value.rotation</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Set up a rotation schedule
</p>
<p>
A rotation surfaces a "Fundamental of the Day/Week/Month"
from one of your value sets.
</p>
</field>
</record>
</odoo>