odoo 18
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Purchase Request : List view -->
|
||||
<record id="view_purchase_request_tree" model="ir.ui.view">
|
||||
<field name="name">kosbar.purchase.request.tree</field>
|
||||
<field name="model">kosbar.purchase.request</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Permintaan Barang" editable="bottom">
|
||||
<field name="name"/>
|
||||
<field name="user_id"/>
|
||||
<field name="date_required"/>
|
||||
<field name="state"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Purchase Request : Form view -->
|
||||
<record id="view_purchase_request_form" model="ir.ui.view">
|
||||
<field name="name">kosbar.purchase.request.form</field>
|
||||
<field name="model">kosbar.purchase.request</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Permintaan Barang">
|
||||
<header>
|
||||
<button name="action_submit" string="Submit" type="object"
|
||||
class="btn-primary" invisible="state != 'draft'"/>
|
||||
<button name="action_approve" string="Approved" type="object"
|
||||
class="btn-success" invisible="state != 'submitted'"/>
|
||||
<button name="action_done" string="Mark Done" type="object"
|
||||
class="btn-secondary" invisible="state != 'approved'"/>
|
||||
<button name="action_reject" string="Reject" type="object"
|
||||
class="btn-danger" invisible="state != 'submitted'"/>
|
||||
<button name="action_draft" string="Reset to Draft" type="object"
|
||||
invisible="state != 'rejected'"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,submitted,approved,done"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1><field name="name" readonly="1"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="user_id"/>
|
||||
<field name="date_required"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="state" readonly="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Barang">
|
||||
<field name="line_ids">
|
||||
<list editable="bottom">
|
||||
<field name="is_new_product"/>
|
||||
<field name="product_id" invisible="is_new_product"/>
|
||||
<field name="new_product_name" invisible="not is_new_product"/>
|
||||
<field name="categ_id" invisible="not is_new_product"/>
|
||||
<field name="product_qty"/>
|
||||
<field name="product_uom"/>
|
||||
<field name="price_unit"/>
|
||||
<field name="notes" optional="show"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Keterangan">
|
||||
<field name="notes" placeholder="Keperluan / alasan pembelian"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Action & Menu -->
|
||||
<record id="action_purchase_request" model="ir.actions.act_window">
|
||||
<field name="name">Permintaan Barang</field>
|
||||
<field name="res_model">kosbar.purchase.request</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_purchase_request"
|
||||
name="Permintaan Barang"
|
||||
parent="purchase.menu_purchase_root"
|
||||
action="action_purchase_request"
|
||||
sequence="70"/>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user