Skip to content

Commit

Permalink
[ADD] stock_picking
Browse files Browse the repository at this point in the history
Now vouchers field is stored and replaced in stock_picking views voucher_ids for vouchers
  • Loading branch information
nmadhoc committed Jan 28, 2021
1 parent 2f71702 commit 3c43d25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion stock_voucher/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class StockPicking(models.Model):
)
vouchers = fields.Char(
compute='_compute_vouchers',
string='Vouchers (string)'
string='Vouchers (string)',
store=True,
)
voucher_ids = fields.One2many(
'stock.picking.voucher',
Expand Down
2 changes: 1 addition & 1 deletion stock_voucher/views/stock_picking_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<field name="inherit_id" ref="stock.vpicktree"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="voucher_ids" widget="many2many_tags"/>
<field name="vouchers"/>
</field>
</field>
</record>
Expand Down

0 comments on commit 3c43d25

Please sign in to comment.