diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/ir_sequence.xml | 8 | ||||
| -rw-r--r-- | indoteknik_custom/views/tukar_guling.xml | 49 | ||||
| -rw-r--r-- | indoteknik_custom/views/tukar_guling_po.xml | 87 |
3 files changed, 75 insertions, 69 deletions
diff --git a/indoteknik_custom/views/ir_sequence.xml b/indoteknik_custom/views/ir_sequence.xml index 2868f79d..17c9dd8c 100644 --- a/indoteknik_custom/views/ir_sequence.xml +++ b/indoteknik_custom/views/ir_sequence.xml @@ -198,5 +198,13 @@ <field name="number_next">1</field> <field name="number_increment">1</field> </record> + <record id="seq_tukar_guling" model="ir.sequence"> + <field name="name">Pengajuan Return PO</field> + <field name="code">tukar.guling.po</field> + <field name="prefix">CCM-po/</field> + <field name="padding">5</field> + <field name="number_next">1</field> + <field name="number_increment">1</field> + </record> </data> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/tukar_guling.xml b/indoteknik_custom/views/tukar_guling.xml index 633f1da4..01721b43 100644 --- a/indoteknik_custom/views/tukar_guling.xml +++ b/indoteknik_custom/views/tukar_guling.xml @@ -10,12 +10,12 @@ </record> <!-- Menu --> <menuitem - id="menu_pengajuan_tukar_guling" - name="Pengajuan Return SO" - parent="sale.menu_sale_report" - sequence="3" - action="action_pengajuan_tukar_guling" - /> + id="menu_pengajuan_tukar_guling" + name="Pengajuan Return SO" + parent="sale.menu_sale_report" + sequence="3" + action="action_pengajuan_tukar_guling" + /> <!-- Tree View --> <record id="pengajuan_tukar_guling_tree" model="ir.ui.view"> <field name="name">pengajuan.tukar.guling.tree</field> @@ -28,10 +28,10 @@ <field name="ba_num" string="Nomor BA"/> <field name="return_type" string="Return Type"/> <field name="state" widget="badge" - decoration-info="state in ('draft', 'approval_sales', 'approval_logistic','approval_finance')" - decoration-success="state == 'done'" - decoration-muted="state == 'cancel'" - /> + decoration-info="state in ('draft', 'approval_sales', 'approval_logistic','approval_finance')" + decoration-success="state == 'done'" + decoration-muted="state == 'cancel'" + /> </tree> </field> </record> @@ -43,19 +43,19 @@ <form> <header> <button name="action_submit" string="Submit" type="object" - class="btn-primary" - attrs="{'invisible': [('state', '!=', 'draft')]}"/> + 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" + class="btn-secondary" attrs="{'invisible': [('state', '=', 'draft')]}" - confirm="Are you sure you want to cancel this record?"/> + 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?"/> + 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> @@ -78,15 +78,14 @@ <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="ort_num" readonly="1"/>--> + <!-- <field name="srt_num" readonly="1"/>--> <field name="operations" string="Operations" - attrs="{ - 'invisible': [('return_type', 'not in', ['revisi_so','tukar_guling'])], - 'required': [('return_type', 'in', ['revisi_so'])] + attrs="{ + 'required': [('return_type', 'in', ['revisi_so', 'tukar_guling'])] }"/> <field name="origin" readonly="1"/> -<!-- <field name="origin_so" readonly="1"/>--> + <!-- <field name="origin_so" readonly="1"/>--> </group> <group> <field name="ba_num" string="Nomor BA"/> @@ -100,11 +99,11 @@ <tree string="Product Lines"> <field name="sequence" widget="handle"/> <field name="product_id" required="1" - options="{'no_create': True, 'no_create_edit': True}"/> + 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}"/> + options="{'no_create': True, 'no_create_edit': True}"/> </tree> </field> </page> diff --git a/indoteknik_custom/views/tukar_guling_po.xml b/indoteknik_custom/views/tukar_guling_po.xml index 76d85904..6e13eee2 100644 --- a/indoteknik_custom/views/tukar_guling_po.xml +++ b/indoteknik_custom/views/tukar_guling_po.xml @@ -3,31 +3,19 @@ <data> <!-- Action --> <record id="action_pengajuan_tukar_guling_po" model="ir.actions.act_window"> - <field name="name">Pengajuan Tukar Guling PO</field> + <field name="name">Pengajuan Return PO</field> <field name="type">ir.actions.act_window</field> <field name="res_model">tukar.guling.po</field> <field name="view_mode">tree,form</field> </record> - + <!-- Menu --> <menuitem id="menu_pengajuan_tukar_guling_po" - name="Pengajuan Tukar Guling PO" + name="Pengajuan Return PO" parent="purchase.menu_procurement_management" - sequence="4" + sequence="3" action="action_pengajuan_tukar_guling_po" /> - - <!-- Sequence --> - <record id="seq_tukar_guling_po" model="ir.sequence"> - <field name="name">Pengajuan Tukar Guling PO</field> - <field name="code">tukar.guling.po</field> - <field name="prefix">PTGPO/</field> - <field name="padding">5</field> - <field name="number_next">1</field> - <field name="number_increment">1</field> - <field name="company_id" eval="False"/> - </record> - <!-- Tree View --> <record id="pengajuan_tukar_guling_po_tree" model="ir.ui.view"> <field name="name">pengajuan.tukar.guling.po.tree</field> @@ -36,18 +24,17 @@ <tree create="1" delete="1" default_order="create_date desc"> <field name="name"/> <field name="date"/> - <field name="operations" string="BU/Out"/> + <field name="operations" string="Operations"/> <field name="ba_num" string="Nomor BA"/> <field name="return_type" string="Return Type"/> <field name="state" widget="badge" - decoration-info="state in ('draft', 'approval_purchase', 'approval_logistic','approval_finance')" - decoration-success="state == 'done'" - decoration-muted="state == 'cancel'" + decoration-info="state in ('draft', 'approval_purchase', 'approval_logistic','approval_finance')" + decoration-success="state == 'done'" + decoration-muted="state == 'cancel'" /> </tree> </field> </record> - <!-- Form View --> <record id="pengajuan_tukar_guling_po_form" model="ir.ui.view"> <field name="name">pengajuan.tukar.guling.po.form</field> @@ -56,55 +43,67 @@ <form> <header> <button name="action_submit" string="Submit" type="object" - class="btn-primary" - attrs="{'invisible': [('state', '!=', 'draft')]}"/> + class="btn-primary" + attrs="{'invisible': [('state', '!=', 'draft')]}"/> <button name="action_approve" string="Approve" type="object" - class="btn-primary" - attrs="{'invisible': [('state', 'not in', ['approval_purchase', 'approval_logistic', 'approval_finance'])]}"/> + class="btn-primary" + attrs="{'invisible': [('state', 'not in', ['approval_purchase', 'approval_logistic', 'approval_finance'])]}"/> <button name="action_cancel" string="Cancel" type="object" - class="btn-secondary" - attrs="{'invisible': [('state', '=', 'draft')]}" - confirm="Are you sure you want to cancel this record?"/> + class="btn-secondary" + attrs="{'invisible': [('state', '=', 'draft')]}" + 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?"/> + 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_purchase,approval_logistic,approval_finance,done"/> + statusbar_visible="draft,approval_purchase,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': [('po_picking_ids', '=', False)]}"> + <field name="po_picking_ids" widget="statinfo" string="Delivery"/> + </button> + </div> <div class="oe_title"> <h1> <field name="name" readonly="1" class="oe_inline"/> </h1> - <hr/> </div> <group> <group> <field name="date" string="Date" readonly="1"/> <field name="return_type"/> - <field name="operations" string="BU/Out" - attrs="{ - 'invisible': [('return_type', 'not in', ['revisi_po', 'debit_memo', 'tukar_guling'])], - 'required': [('return_type', 'in', ['revisi_po', 'debit_memo'])] - }"/> + <!-- <field name="ort_num" readonly="1"/>--> + <!-- <field name="srt_num" readonly="1"/>--> + <field name="operations" string="Operations" + attrs="{ + 'required': [('return_type', 'in', ['revisi_po', '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"> - <field name="line_ids"> - <tree string="Product Lines" editable="bottom"> + <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}"/> + 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}"/> + options="{'no_create': True, 'no_create_edit': True}"/> </tree> </field> </page> @@ -114,4 +113,4 @@ </field> </record> </data> -</odoo> +</odoo>
\ No newline at end of file |
