Skip to content

Commit

Permalink
TA#64784 [ADD] stock_location_dest_width : width reset
Browse files Browse the repository at this point in the history
  • Loading branch information
lanto-razafindrabe authored and majouda committed Apr 18, 2024
1 parent 4b7579f commit edad9ac
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# "stock_auto_assign_disabled_jit",
"stock_change_qty_reason_enhanced",
"stock_immediate_transfer_disable",
"stock_location_dest_width",
"stock_location_position_alphanum",
"stock_move_location_domain_improved",
"stock_move_origin_link",
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ COPY stock_auto_assign_disabled /mnt/extra-addons/stock_auto_assign_disabled
# COPY stock_auto_assign_disabled_jit /mnt/extra-addons/stock_auto_assign_disabled_jit
COPY stock_change_qty_reason_enhanced /mnt/extra-addons/stock_change_qty_reason_enhanced
COPY stock_immediate_transfer_disable /mnt/extra-addons/stock_immediate_transfer_disable
COPY stock_location_dest_width /mnt/extra-addons/stock_location_dest_width
COPY stock_location_position_alphanum /mnt/extra-addons/stock_location_position_alphanum
COPY stock_move_location_domain_improved /mnt/extra-addons/stock_move_location_domain_improved
COPY stock_move_origin_link /mnt/extra-addons/stock_move_origin_link
Expand Down
10 changes: 10 additions & 0 deletions stock_location_dest_width/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Stock Location Destination Width
================================
This module adjusts the width of the destination location field in the detailed operation wizard
to its default rendering.

.. image:: static/description/detailed_operation_wizard.png

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
2 changes: 2 additions & 0 deletions stock_location_dest_width/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright 2024 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
23 changes: 23 additions & 0 deletions stock_location_dest_width/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2024 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Stock Location Destination Width",
"version": "1.0.0",
"author": "Numigi",
"maintainer": "Numigi",
"website": "https://bit.ly/numigi-com",
"license": "AGPL-3",
"category": "Stock",
"depends": [
"stock",
],
"summary": """
Adjusts the width of the destination location field
in the detailed operation wizard.
""",
"data": [
"views/stock_move_views.xml",
],
"installable": True,
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions stock_location_dest_width/views/stock_move_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="view_stock_move_line_operation_tree_inherit" model="ir.ui.view">
<field name="name">stock.move.line.operations.tree.inherit</field>
<field name="model">stock.move.line</field>
<field name="inherit_id" ref="stock.view_stock_move_line_operation_tree"/>
<field name="arch" type="xml">
<!-- remove width attributes on location_dest_id, set it to default render -->
<xpath expr="//field[@name='location_dest_id']" position="attributes">
<attribute name="width"/>
</xpath>
</field>
</record>

</odoo>

0 comments on commit edad9ac

Please sign in to comment.