diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/logbook_sj.xml | 52 | ||||
| -rw-r--r-- | indoteknik_custom/views/po_multi_cancel.xml | 31 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 13 | ||||
| -rw-r--r-- | indoteknik_custom/views/report_logbook_sj.xml | 90 |
4 files changed, 184 insertions, 2 deletions
diff --git a/indoteknik_custom/views/logbook_sj.xml b/indoteknik_custom/views/logbook_sj.xml new file mode 100644 index 00000000..9eb9aa12 --- /dev/null +++ b/indoteknik_custom/views/logbook_sj.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8" ?> +<odoo> + <record id="view_logbook_sj_form" model="ir.ui.view"> + <field name="name">Logbook SJ</field> + <field name="model">logbook.sj</field> + <field name="arch" type="xml"> + <form> + <sheet> + <field name="name" invisible="1"/> + <field + name="logbook_sj_line" + mode="tree" + > + <tree editable="bottom"> + <control> + <create name="add_logbook_sj_line_control" string="Add a logbook"/> + </control> + <field name="name" required="1"/> + <field name="driver_id" readonly="1"/> + <field name="departure_date" readonly="1"/> + <field name="arrival_date" readonly="1"/> + <field name="carrier_id" readonly="1"/> + <field name="tracking_no" readonly="1"/> + <field name="partner_id" readonly="1"/> + </tree> + </field> + </sheet> + <footer> + <button name="create_logbook_sj" string="Submit" type="object" default_focus="1" class="oe_highlight"/> + <button string="Cancel" class="btn btn-secondary" special="cancel" /> + </footer> + </form> + </field> + </record> + + <record id="action_logbook_sj" model="ir.actions.act_window"> + <field name="name">Logbook SJ</field> + <field name="res_model">logbook.sj</field> + <field name="type">ir.actions.act_window</field> + <field name="view_mode">form</field> + <field name="view_id" ref="view_logbook_sj_form"/> + <field name="target">new</field> + </record> + + <menuitem + action="action_logbook_sj" + id="logbook_sj" + parent="stock.menu_stock_warehouse_mgmt" + name="Logbook SJ" + sequence="1" + /> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/po_multi_cancel.xml b/indoteknik_custom/views/po_multi_cancel.xml new file mode 100644 index 00000000..c17fc5a7 --- /dev/null +++ b/indoteknik_custom/views/po_multi_cancel.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="view_po_multi_cancel_form" model="ir.ui.view"> + <field name="name">PO Multi Cancel</field> + <field name="model">po.multi.cancel</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <span>Apakah Anda Yakin Ingin Mengubah Status Menjadi Cancel?</span> + </group> + </sheet> + <footer> + <button name="save_multi_cancel_po" string="Update" type="object" default_focus="1" class="oe_highlight"/> + <button string="Cancel" class="btn btn-secondary" special="cancel" /> + </footer> + </form> + </field> + </record> + + <record id="action_po_multi_cancel" model="ir.actions.act_window"> + <field name="name">PO Multi Cancel</field> + <field name="res_model">po.multi.cancel</field> + <field name="type">ir.actions.act_window</field> + <field name="view_mode">form</field> + <field name="view_id" ref="view_po_multi_cancel_form"/> + <field name="target">new</field> + </record> + </data> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 48443057..a6f28ffa 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -52,12 +52,12 @@ </field> <field name="product_id" position="before"> <field name="line_no" attrs="{'readonly': 1}" optional="hide"/> - <field name="delete_line"/> </field> <field name="product_id" position="attributes"> <attribute name="options">{'no_create': True}</attribute> </field> <field name="product_qty" position="before"> + <field name="is_edit_product_qty" readonly="1" optional="hide"/> <field name="qty_onhand" readonly="1" optional="hide"/> <field name="qty_incoming" readonly="1" optional="hide"/> <field name="qty_outgoing" readonly="1" optional="hide"/> @@ -102,7 +102,7 @@ </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_qty']" position="attributes"> - <attribute name="attrs">{'readonly': [], 'required': True}</attribute> + <attribute name="attrs">{'readonly': [('is_edit_product_qty', '=', False)], 'required': True}</attribute> </xpath> <xpath expr="//form/sheet/notebook/page[@name='purchase_delivery_invoice']" position="before"> @@ -213,4 +213,13 @@ <field name="code">action = records.open_form_multi_confirm_po()</field> </record> </data> + <data> + <record id="purchase_order_multi_cancel_ir_actions_server" model="ir.actions.server"> + <field name="name">Cancel PO</field> + <field name="model_id" ref="purchase.model_purchase_order"/> + <field name="binding_model_id" ref="purchase.model_purchase_order"/> + <field name="state">code</field> + <field name="code">action = records.open_form_multi_cancel()</field> + </record> + </data> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/report_logbook_sj.xml b/indoteknik_custom/views/report_logbook_sj.xml new file mode 100644 index 00000000..52e00d17 --- /dev/null +++ b/indoteknik_custom/views/report_logbook_sj.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <record id="report_logbook_sj_tree" model="ir.ui.view"> + <field name="name">report.logbook.sj.tree</field> + <field name="model">report.logbook.sj</field> + <field name="arch" type="xml"> + <tree create="0"> + <field name="name"/> + <field name="date"/> + <field name="name_picking"/> + <field name="approve_by_finance"/> + <field name="partner_id"/> + </tree> + </field> + </record> + + <record id="report_logbook_sj_line_tree" model="ir.ui.view"> + <field name="name">report.logbook.sj.line.tree</field> + <field name="model">report.logbook.sj.line</field> + <field name="arch" type="xml"> + <tree> + <field name="product_id"/> + <field name="location_id"/> + <field name="product_uom_qty"/> + <field name="qty_done"/> + <field name="product_uom_id"/> + </tree> + </field> + </record> + + <record id="report_logbook_sj_form" model="ir.ui.view"> + <field name="name">report.logbook.sj.form</field> + <field name="model">report.logbook.sj</field> + <field name="arch" type="xml"> + <form> + <header> + <button name="approve" + string="Approve" + type="object" + /> + </header> + <sheet string="Report logbook SJ"> + <div class="oe_button_box" name="button_box"/> + <group> + <group> + <field name="name" readonly="1"/> + <field name="date" readonly="1"/> + </group> + <group> + <field name="name_picking" readonly="1"/> + <field name="partner_id" readonly="1"/> + <field name="approve_by_finance" readonly="1"/> + </group> + </group> + <notebook> + <page string="Line"> + <field name="report_logbook_sj_line"/> + </page> + </notebook> + </sheet> + </form> + </field> + </record> +<!-- + <record id="view_report_logbook_sj_filter" model="ir.ui.view"> + <field name="name">report.logbook.sj.list.select</field> + <field name="model">report.logbook.sj</field> + <field name="priority" eval="15"/> + <field name="arch" type="xml"> + <search string="Search Report Logbook SJ"> + <field name="number"/> + <field name="partner_id"/> + <field name="dunning_line" string="Invoice" filter_domain="[('dunning_line.invoice_id', 'ilike', self)]"/> + </search> + </field> + </record> --> + + <record id="report_logbook_sj_action" model="ir.actions.act_window"> + <field name="name">Report Logbook SJ</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">report.logbook.sj</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem id="menu_report_logbook_sj" + name="Report Logbook SJ" + action="report_logbook_sj_action" + parent="account.menu_finance_reports" + sequence="200"/> +</odoo>
\ No newline at end of file |
