Skip to content

Commit

Permalink
[DON'T MERGE] unreleased deps
Browse files Browse the repository at this point in the history
  • Loading branch information
chienandalu committed May 23, 2024
1 parent 26f8279 commit f31aa71
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions stock_secondary_unit_weighing/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import stock_move
from . import stock_move_line
16 changes: 16 additions & 0 deletions stock_secondary_unit_weighing/models/stock_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models


class StockMove(models.Model):
_inherit = "stock.move"

def action_add_move_line(self):
action = super().action_add_move_line()
if self.secondary_uom_id:
extra_info = (
f"[{self.secondary_uom_id.display_name} - {self.secondary_uom_qty}]"
)
action["name"] = f'{action["name"]} {extra_info}'
return action
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
odoo-addon-stock_weighing @ git+https://github.com/OCA/stock-weighing.git@refs/pull/1/head#subdirectory=setup/stock_weighing

0 comments on commit f31aa71

Please sign in to comment.