summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/stock_picking.xml
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-09-01 07:58:42 +0000
committerIT Fixcomart <it@fixcomart.co.id>2022-09-01 07:58:42 +0000
commit645b385f1feea20975f1abaacdf6ffdcb0af7ff1 (patch)
treeeebe5fca40c038aa21fc230f7b5707fa38b27b20 /indoteknik_custom/views/stock_picking.xml
parent8e7e127bb6e7f5b67771e24ba12322ff2718399a (diff)
parente682e0518fcaa62588287bb974d8697ceed8300f (diff)
Merged in master (pull request #6)
Master
Diffstat (limited to 'indoteknik_custom/views/stock_picking.xml')
-rw-r--r--indoteknik_custom/views/stock_picking.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml
new file mode 100644
index 00000000..9081a58e
--- /dev/null
+++ b/indoteknik_custom/views/stock_picking.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <data>
+ <record id="stock_picking_form_view_inherit" model="ir.ui.view">
+ <field name="name">Stock Picking</field>
+ <field name="model">stock.picking</field>
+ <field name="inherit_id" ref="stock.view_picking_form"/>
+ <field name="arch" type="xml">
+ <field name="backorder_id" position="after">
+ <field name="is_internal_use"
+ string="Internal Use"
+ type="object"
+ attrs="{'readonly': True}"
+ force_save="1"
+ />
+ </field>
+ <field name="origin" position="after">
+ <field name="account_id"
+ attrs="{
+ 'readonly': [['state', 'in', ['done', 'cancel']]],
+ 'invisible': [['is_internal_use', '=', False]],
+ 'required': [['is_internal_use', '=', True]]
+ }"
+ />
+ </field>
+ </field>
+ </record>
+ </data>
+</odoo> \ No newline at end of file