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 authored and nicomacr committed Feb 1, 2021
1 parent 2f71702 commit b872e20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stock_voucher/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Stock Voucher',
'version': "13.0.1.2.0",
'version': "13.0.1.3.0",
'category': 'Warehouse Management',
'sequence': 14,
'summary': '',
Expand Down
3 changes: 2 additions & 1 deletion stock_voucher/models/stock_picking.py
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
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 b872e20

Please sign in to comment.