Skip to content
Snippets Groups Projects
Commit 6fd81a1e authored by roen-odoo's avatar roen-odoo
Browse files

[FIX] stock_picking_batch: Add multicompany rule for batch picking


Current behavior:
All batch transfers are shown in the tree view. But only the one for the allowed companies should be in the list

Steps to reproduce:
- Be in a multicompany environnement
- Activate batch picking
- Go in Inventory/Batch transfers

opw-2752617

closes odoo/odoo#86498

X-original-commit: 8415b48c
Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
Signed-off-by: default avatarEngels Robin (roen) <roen@odoo.com>
parent 421e9d91
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ This module adds the batch transfer option in warehouse management
'wizard/stock_picking_to_batch_views.xml',
'report/stock_picking_batch_report_views.xml',
'report/report_picking_batch.xml',
'security/stock_picking_batch_security.xml',
],
'demo': [
'data/stock_picking_batch_demo.xml',
......
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
<record model="ir.rule" id="stock_picking_batch_multicompany_rule">
<field name="name">stock.picking.batch multi-company</field>
<field name="model_id" ref="model_stock_picking_batch"/>
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
</data>
</odoo>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment