File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
stock_secondary_unit_weighing/models Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ from . import stock_move
1
2
from . import stock_move_line
Original file line number Diff line number Diff line change
1
+ # Copyright 2024 Tecnativa - David Vidal
2
+ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
3
+ from odoo import models
4
+
5
+
6
+ class StockMove (models .Model ):
7
+ _inherit = "stock.move"
8
+
9
+ def action_add_move_line (self ):
10
+ action = super ().action_add_move_line ()
11
+ if self .secondary_uom_id :
12
+ extra_info = (
13
+ f"[{ self .secondary_uom_id .display_name } - { self .secondary_uom_qty } ]"
14
+ )
15
+ action ["name" ] = f'{ action ["name" ]} { extra_info } '
16
+ return action
Original file line number Diff line number Diff line change
1
+ odoo-addon-stock_weighing @ git+https://github.com/OCA/stock-weighing.git@refs/pull/1/head#subdirectory=setup/stock_weighing
You can’t perform that action at this time.
0 commit comments