Skip to content

Commit f31aa71

Browse files
committed
[DON'T MERGE] unreleased deps
1 parent 26f8279 commit f31aa71

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
from . import stock_move
12
from . import stock_move_line
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
odoo-addon-stock_weighing @ git+https://github.com/OCA/stock-weighing.git@refs/pull/1/head#subdirectory=setup/stock_weighing

0 commit comments

Comments
 (0)