summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/stock_picking.xml
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-08-31 17:10:10 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-08-31 17:10:10 +0700
commite682e0518fcaa62588287bb974d8697ceed8300f (patch)
treeeebe5fca40c038aa21fc230f7b5707fa38b27b20 /indoteknik_custom/views/stock_picking.xml
parenta14315652c37267e437ce644190781486f73aa10 (diff)
parent1e8c8cf61497f7bc67b8282c34641474107e9d8e (diff)
Merge branch 'internal-use'
# Conflicts: # indoteknik_custom/models/__init__.py
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