[FIX] stock: be able to edit sml in mobile
Fine tuning of #143380 It only works for stock.move but it should also be the case for stock.move.line closes odoo/odoo#147597 X-original-commit: b218655990137e223f8df7977ae3ac36d93a32a7 Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com> Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
This commit is contained in:
@@ -101,6 +101,18 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_move_line_mobile_form" model="ir.ui.view">
|
||||
<field name="name">stock.move.line.mobile.form</field>
|
||||
<field name="model">stock.move.line</field>
|
||||
<field name="inherit_id" ref="stock.view_move_line_form"/>
|
||||
<field name="priority">1000</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//form" position="attributes">
|
||||
<attribute name="edit">1</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="stock_move_line_view_search" model="ir.ui.view">
|
||||
<field name="name">stock.move.line.search</field>
|
||||
<field name="model">stock.move.line</field>
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
</div>
|
||||
<field name="move_line_ids"
|
||||
readonly="state == 'cancel' or (state == 'done' and is_locked)"
|
||||
context="{'tree_view_ref': 'stock.view_stock_move_line_operation_tree', 'default_picking_id': picking_id, 'default_move_id': id, 'default_product_id': product_id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id, 'default_company_id': company_id}"
|
||||
context="{'tree_view_ref': 'stock.view_stock_move_line_operation_tree', 'form_view_ref': 'stock.view_move_line_mobile_form', 'default_picking_id': picking_id, 'default_move_id': id, 'default_product_id': product_id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id, 'default_company_id': company_id}"
|
||||
widget="sml_x2_many"/>
|
||||
</form>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user