Skip to content

Commit

Permalink
Update toggle widget
Browse files Browse the repository at this point in the history
  • Loading branch information
cubells committed Nov 15, 2018
1 parent 3d05e22 commit dde313c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion stock_quant_manual_assign/wizard/assign_manual_quants.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def _compute_qties(self):
string='Reserved qty', compute='_compute_qties',
digits=dp.get_precision('Product Unit of Measure'))
move_qty = fields.Float(string='Remaining qty', compute='_compute_qties',
digits=dp.get_precision('Product Unit of Measure'))
digits=dp.get_precision('Product Unit of Measure'),
store=True)

This comment has been minimized.

Copy link
@pedrobaeza

pedrobaeza Nov 15, 2018

Member

Why store it?

quants_lines = fields.One2many('assign.manual.quants.lines',
'assign_wizard', string='Quants')
move_id = fields.Many2one(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<field name="reserved" readonly="1"/>
<field name="location_id" readonly="1"/>
<field name="package_id" readonly="1"/>
<field name="selected"/>
<field name="selected" widget="boolean_toggle"/>
<field name="qty" attrs="{'readonly':[('selected', '=', False)]}" sum="qty"/>
</tree>
</field>
Expand Down

0 comments on commit dde313c

Please sign in to comment.