Garment_ERP/addons/garment_erp/views/garment_style_views.xml
2026-09-21 16:43:23 +05:30

179 lines
9.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Style Kanban View -->
<record id="view_garment_style_kanban" model="ir.ui.view">
<field name="name">garment.style.kanban</field>
<field name="model">garment.style</field>
<field name="arch" type="xml">
<kanban sample="1">
<field name="id"/>
<field name="name"/>
<field name="style_name"/>
<field name="brand_id"/>
<field name="gsm"/>
<field name="variant_count"/>
<field name="image_front"/>
<templates>
<t t-name="card">
<div class="d-flex flex-row p-2">
<div class="me-3" style="width: 70px; height: 85px; overflow: hidden; border-radius: 4px; background: #f8f9fa;">
<field name="image_front" widget="image" options="{'img_class': 'w-100 h-100 object-fit-cover'}" alt="Front"/>
</div>
<div class="flex-grow-1">
<div class="fw-bold fs-6 text-primary"><field name="name"/></div>
<div class="text-truncate fw-semibold text-dark" style="max-width: 180px;"><field name="style_name"/></div>
<div class="text-muted small"><field name="brand_id"/> · <field name="gsm"/> GSM</div>
<div class="mt-2">
<span class="badge bg-secondary"><field name="variant_count"/> Variants</span>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<!-- Style List View -->
<record id="view_garment_style_list" model="ir.ui.view">
<field name="name">garment.style.list</field>
<field name="model">garment.style</field>
<field name="arch" type="xml">
<list string="Garment Styles" sample="1">
<field name="name"/>
<field name="style_name"/>
<field name="brand_id"/>
<field name="season_id"/>
<field name="garment_type_id"/>
<field name="fabric_type_id"/>
<field name="gsm"/>
<field name="sam"/>
<field name="variant_count" string="Variants"/>
<field name="production_count" string="Production"/>
</list>
</field>
</record>
<!-- Style Form View -->
<record id="view_garment_style_form" model="ir.ui.view">
<field name="name">garment.style.form</field>
<field name="model">garment.style</field>
<field name="arch" type="xml">
<form string="Garment Style">
<header>
<button name="action_generate_product_variants" string="Sync Product Catalog Variants" type="object" class="btn-primary"/>
<button name="action_view_variants" string="View Variant SKUs" type="object" class="btn-secondary"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button name="action_view_variants" type="object" class="oe_stat_button" icon="fa-th-list">
<field name="variant_count" widget="statinfo" string="Variants"/>
</button>
<button name="action_view_boms" type="object" class="oe_stat_button" icon="fa-cubes">
<field name="bom_count" widget="statinfo" string="BOMs"/>
</button>
<button name="action_view_production" type="object" class="oe_stat_button" icon="fa-cogs">
<field name="production_count" widget="statinfo" string="Production"/>
</button>
</div>
<field name="image_front" widget="image" class="oe_avatar" options="{'size': [110, 110]}"/>
<div class="oe_title">
<label for="name" string="Style Code"/>
<h1><field name="name" placeholder="e.g. TSHIRT-001"/></h1>
<h3><field name="style_name" placeholder="Descriptive Name e.g. Men's Bio-Washed Crew Neck T-Shirt"/></h3>
</div>
<group>
<group string="Classification">
<field name="brand_id"/>
<field name="season_id"/>
<field name="gender_id"/>
<field name="garment_type_id"/>
<field name="buyer_id"/>
<field name="customer_style_ref"/>
</group>
<group string="Knitwear Fabric Specifications (Tiruppur)">
<field name="fabric_type_id"/>
<field name="composition_id"/>
<field name="gsm"/>
<label for="fabric_width"/>
<div class="o_row">
<field name="fabric_width"/>
<field name="width_type"/>
</div>
<field name="yarn_count"/>
<label for="shrinkage_length_pct" string="Shrinkage (L x W) %"/>
<div class="o_row">
<field name="shrinkage_length_pct"/>% ×
<field name="shrinkage_width_pct"/>%
</div>
</group>
</group>
<group>
<group string="Variant Matrix Configuration">
<field name="color_ids" widget="many2many_tags" options="{'color_field': 'color_hex'}"/>
<field name="size_ids" widget="many2many_tags"/>
<field name="uom_id"/>
</group>
<group string="Industrial Engineering (IE)">
<field name="sam" help="Sewing Standard Allowed Minutes"/>
<field name="smv" help="Total Standard Minute Value"/>
<field name="hsn_code"/>
</group>
</group>
<notebook>
<page string="Measurement Specs (POM)" name="measurement_page">
<field name="measurement_line_ids">
<list editable="bottom">
<field name="sequence" widget="handle"/>
<field name="pom_code"/>
<field name="pom_name"/>
<field name="tolerance_plus"/>
<field name="tolerance_minus"/>
<field name="val_xs"/>
<field name="val_s"/>
<field name="val_m"/>
<field name="val_l"/>
<field name="val_xl"/>
<field name="val_xxl"/>
<field name="val_3xl"/>
<field name="unit"/>
</list>
</field>
</page>
<page string="Sketches &amp; Tech Pack" name="media_page">
<group>
<group string="Sketches / Photos">
<field name="image_back" widget="image" options="{'size': [140, 140]}"/>
</group>
<group string="Tech Pack File">
<field name="techpack_attachment" filename="techpack_filename"/>
<field name="techpack_filename" invisible="1"/>
</group>
</group>
</page>
<page string="Construction Notes" name="notes_page">
<field name="notes" placeholder="Enter seam specs, stitch density (SPI), thread recommendations..."/>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<!-- Action & Menu -->
<record id="action_garment_style" model="ir.actions.act_window">
<field name="name">Garment Styles</field>
<field name="res_model">garment.style</field>
<field name="view_mode">kanban,list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">Create your first Garment Style!</p>
<p>Define style code, fabric specifications (GSM, width, shrinkage), colors, and size measurements.</p>
</field>
</record>
<menuitem id="menu_garment_style" name="Garment Styles" parent="menu_garment_merchandising_root" action="action_garment_style" sequence="10"/>
</odoo>