Add symbol widget
issue9059 review276871002
This commit is contained in:
1 parent
f252823d19
commit
850752ce42
2 files changed
+4
-1
No files matched your search
@@ -112,6 +112,8 @@ class ShipmentAssignManual(Wizard):
|
||||
defaults['skipped'] = [m.id for m in self.show.skipped]
|
||||
if 'move' in fields:
|
||||
defaults['move'] = self.show.move.id
|
||||
if 'unit' in fields:
|
||||
defaults['unit'] = self.show.move.uom.id
|
||||
if 'unit_digits' in fields:
|
||||
defaults['unit_digits'] = self.show.move.unit_digits
|
||||
if 'move_quantity' in fields:
|
||||
@@ -148,6 +150,7 @@ class ShipmentAssignManualShow(ModelView):
|
||||
depends=['unit_digits', 'move_quantity'],
|
||||
help="The maximum quantity to assign from the place.\n"
|
||||
"Leave empty for the full quantity of the move.")
|
||||
unit = fields.Many2One('product.uom', "Unit", readonly=True)
|
||||
unit_digits = fields.Integer("Unit Digits", readonly=True)
|
||||
move_quantity = fields.Float("Move Quantity", readonly=True)
|
||||
place = fields.Selection('get_places', "Place", required=True, sort=False)
|
||||
|
||||
@@ -7,5 +7,5 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<label name="place"/>
|
||||
<field name="place"/>
|
||||
<label name="quantity"/>
|
||||
<field name="quantity"/>
|
||||
<field name="quantity" symbol="unit"/>
|
||||
</form>
|
||||
Reference in new issue
Block a user