summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMohammed Shekha <msh@odoo.com>2019-08-22 06:09:29 +0000
committerAdrien Dieudonne <adr@odoo.com>2019-08-28 07:37:09 +0000
commit555a2fd93e99f107e1d5fa62f5ed5fa65fc9d6ea (patch)
treeb6346dd7afe6e8faa9ed09f0fa8aed4c36eba6a2 /addons
parent272b041e530a1e50ad24cd93d45d47bca1165ff4 (diff)
[IMP] stock: add inline form view for move_ids_without_package o2m
Before this commit the default form view was opened for this o2m on mobile but there was too much fields. As we want to show the same fields as the editable list in desktop, we added an inline form view that will be used on mobile. Task ID : 2031163 closes odoo/odoo#34830 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/stock/views/stock_picking_views.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml
index 33ed8da051e..20fd642675a 100644
--- a/addons/stock/views/stock_picking_views.xml
+++ b/addons/stock/views/stock_picking_views.xml
@@ -337,6 +337,24 @@
('parent.show_reserved', '=', False),
('parent.show_operations', '=', False)]}"/>
</tree>
+ <form string="Stock Moves">
+ <header>
+ <field name="state" widget="statusbar"/>
+ </header>
+ <group>
+ <field name="product_uom_category_id" invisible="1"/>
+ <field name="additional" invisible="1"/>
+ <field name="has_move_lines" invisible="1"/>
+ <field name="product_id" required="1" attrs="{'readonly': ['|', '&amp;', ('state', '!=', 'draft'), ('additional', '=', False), ('has_move_lines', '=', True)]}"/>
+ <field name="is_initial_demand_editable" invisible="1"/>
+ <field name="is_quantity_done_editable" invisible="1"/>
+ <field name="product_uom_qty" string="Initial Demand" attrs="{'invisible': [('parent.immediate_transfer', '=', True)], 'readonly': [('is_initial_demand_editable', '=', False)]}"/>
+ <field name="reserved_availability" string="Reserved" attrs="{'invisible': (['|','|', ('parent.state','=', 'done'), ('parent.picking_type_code', '=', 'incoming'), ('parent.immediate_transfer', '=', True)])}"/>
+ <field name="quantity_done" string="Done" attrs="{'readonly': [('is_quantity_done_editable', '=', False)]}"/>
+ <field name="product_uom" attrs="{'readonly': [('state', '!=', 'draft'), ('additional', '=', False)]}" options="{'no_open': True, 'no_create': True}" string="Unit of Measure" groups="uom.group_uom"/>
+ <field name="description_picking" string="Description"/>
+ </group>
+ </form>
</field>
<field name="package_level_ids" context="{'default_location_id': location_id, 'default_location_dest_id': location_dest_id}" attrs="{'readonly': [('state', '=', 'done')], 'invisible': ['|', ('picking_type_entire_packs', '=', False), ('show_operations', '=', True)]}" />
<button class="oe_highlight" name="put_in_pack" type="object" string="Put in Pack" attrs="{'invisible': [('state', 'in', ('draft', 'done', 'cancel'))]}" groups="stock.group_tracking_lot"/>