Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TA#64784 [ADD] stock_location_dest_width : width reset #149

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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).

{

Check warning on line 4 in stock_location_dest_width/__manifest__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

stock_location_dest_width/__manifest__.py#L4

Statement seems to have no effect
"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>
Loading