summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-07-16 08:47:04 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-07-16 08:47:04 +0700
commit77d3bd2541a52270f03b84e38dd691630bcd82af (patch)
tree7ef3c633591cb1d7fdf0d06e5037c647ba0541b0 /indoteknik_custom/views
parent85caa56671d90cde807c44179680ef790d1a58c5 (diff)
<miqdad> mapping koli tukar guling
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/tukar_guling.xml155
1 files changed, 78 insertions, 77 deletions
diff --git a/indoteknik_custom/views/tukar_guling.xml b/indoteknik_custom/views/tukar_guling.xml
index 41e9a18d..903a47fd 100644
--- a/indoteknik_custom/views/tukar_guling.xml
+++ b/indoteknik_custom/views/tukar_guling.xml
@@ -36,81 +36,82 @@
</field>
</record>
<!-- Form View -->
- <record id="pengajuan_tukar_guling_form" model="ir.ui.view">
- <field name="name">pengajuan.tukar.guling.form</field>
- <field name="model">tukar.guling</field>
- <field name="arch" type="xml">
- <form>
- <header>
- <button name="action_submit" string="Submit" type="object"
- class="btn-primary"
- attrs="{'invisible': [('state', '!=', 'draft')]}"/>
- <button name="action_approve" string="Approve" type="object"
- class="btn-primary"
- attrs="{'invisible': [('state', 'not in', ['approval_sales', 'approval_logistic', 'approval_finance'])]}"/>
- <button name="action_cancel" string="Cancel" type="object"
- class="btn-secondary"
- attrs="{'invisible': [('state', '=', 'cancel')]}"
- confirm="Are you sure you want to cancel this record?"/>
- <button name="action_draft" string="Set to Draft" type="object"
- class="btn-secondary"
- attrs="{'invisible': [('state', '!=', 'cancel')]}"
- confirm="Are you sure you want to reset this record to draft?"/>
- <field name="state" widget="statusbar" readonly="1"
- statusbar_visible="draft,approval_sales,approval_logistic,approval_finance,done"/>
- </header>
- <sheet>
- <div class="oe_button_box">
- <button name="action_view_picking"
- type="object"
- class="oe_stat_button"
- icon="fa-truck"
- attrs="{'invisible': [('picking_ids', '=', False), ('state', 'in', ['draft', 'approval_sales', 'approval_logistic', 'approval_finance'])]}">
- <field name="picking_ids" widget="statinfo" string="Delivery"/>
- </button>
- </div>
- <div class="oe_title">
- <h1>
- <field name="name" readonly="1" class="oe_inline"/>
- </h1>
- </div>
- <group>
- <group>
- <field name="date" string="Date" readonly="1"/>
- <field name="return_type"/>
- <!-- <field name="ort_num" readonly="1"/>-->
- <!-- <field name="srt_num" readonly="1"/>-->
- <field name="operations" string="Operations"
- attrs="{
- 'required': [('return_type', 'in', ['revisi_so', 'tukar_guling'])]
- }"/>
- <field name="origin" readonly="1"/>
- <!-- <field name="origin_so" readonly="1"/>-->
- </group>
- <group>
- <field name="ba_num" string="Nomor BA"/>
- <field name="notes"/>
- </group>
- </group>
- <!-- Product Lines -->
- <notebook>
- <page string="Product Lines" name="product_lines" create="0" edit="0">
- <field name="line_ids" delete="1" readonly="1">
- <tree string="Product Lines">
- <field name="sequence" widget="handle"/>
- <field name="product_id" required="1"
- options="{'no_create': True, 'no_create_edit': True}"/>
- <field name="name" force_save="1"/>
- <field name="product_uom_qty" string="Quantity"/>
- <field name="product_uom" string="UoM"
- options="{'no_create': True, 'no_create_edit': True}"/>
- </tree>
- </field>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- </data>
+ <record id="pengajuan_tukar_guling_form" model="ir.ui.view">
+ <field name="name">pengajuan.tukar.guling.form</field>
+ <field name="model">tukar.guling</field>
+ <field name="arch" type="xml">
+ <form>
+ <header>
+ <button name="action_submit" string="Submit" type="object"
+ class="btn-primary"
+ attrs="{'invisible': [('state', '!=', 'draft')]}"/>
+ <button name="action_approve" string="Approve" type="object"
+ class="btn-primary"
+ attrs="{'invisible': [('state', 'not in', ['approval_sales', 'approval_logistic', 'approval_finance'])]}"/>
+ <button name="action_cancel" string="Cancel" type="object"
+ class="btn-secondary"
+ attrs="{'invisible': [('state', '=', 'cancel')]}"/>
+ <button name="action_draft" string="Set to Draft" type="object"
+ class="btn-secondary"
+ attrs="{'invisible': [('state', '!=', 'cancel')]}"/>
+ <field name="state" widget="statusbar" readonly="1"
+ statusbar_visible="draft,approval_sales,approval_logistic,approval_finance,done"/>
+ </header>
+ <sheet>
+ <div class="oe_button_box">
+ <button name="action_view_picking"
+ type="object"
+ class="oe_stat_button"
+ icon="fa-truck"
+ attrs="{'invisible': [('picking_ids', '=', False), ('state', 'in', ['draft', 'approval_sales', 'approval_logistic', 'approval_finance'])]}">
+ <field name="picking_ids" widget="statinfo" string="Delivery"/>
+ </button>
+ </div>
+ <div class="oe_title">
+ <h1>
+ <field name="name" readonly="1" class="oe_inline"/>
+ </h1>
+ </div>
+ <group>
+ <group>
+ <field name="date" string="Date" readonly="1"/>
+ <field name="return_type"/>
+ <field name="operations"
+ attrs="{'required': [('return_type', 'in', ['revisi_so', 'tukar_guling'])]}"/>
+ <field name="origin" readonly="1"/>
+ </group>
+ <group>
+ <field name="ba_num" string="Nomor BA"/>
+ <field name="notes"/>
+ </group>
+ </group>
+ <notebook>
+ <page string="Product Lines" name="product_lines" create="0" edit="0">
+ <field name="line_ids" delete="1" readonly="1">
+ <tree string="Product Lines">
+ <field name="sequence" widget="handle"/>
+ <field name="product_id" required="1"
+ options="{'no_create': True, 'no_create_edit': True}"/>
+ <field name="name" force_save="1"/>
+ <field name="product_uom_qty" string="Quantity"/>
+ <field name="product_uom" string="UoM"
+ options="{'no_create': True, 'no_create_edit': True}"/>
+ </tree>
+ </field>
+ </page>
+ <page string="Mapping Koli" name="mapping_koli" create="0" edit="0">
+ <field name="mapping_koli_ids" readonly="1">
+ <tree>
+ <field name="pick_id"/>
+ <field name="product_id"/>
+ <field name="qty_done"/>
+ </tree>
+ </field>
+ </page>
+ </notebook>
+ </sheet>
+ </form>
+ </field>
+ </record>
+ </data>
</odoo> \ No newline at end of file