Browse Source

[FIX] beesdoo_inventory: fix missing beesdoo_product dependency for main_seller_id, and set product filter or right field

pull/149/head
Manuel Claeys Bouuaert 4 years ago
committed by Rémy Taymans
parent
commit
4ed8928b9d
  1. 2
      beesdoo_inventory/__manifest__.py
  2. 2
      beesdoo_inventory/views/stock.xml

2
beesdoo_inventory/__manifest__.py

@ -19,7 +19,7 @@
'website': "https://github.com/beescoop/Obeesdoo",
'category': 'Inventory',
'version': '12.0.1.0.0',
'depends': ['delivery', 'beesdoo_base'],
'depends': ['delivery', 'beesdoo_base', 'beesdoo_product'],
'data': [
'views/stock.xml'
],

2
beesdoo_inventory/views/stock.xml

@ -26,7 +26,7 @@
<button name="copy_qty" string="Copy Move Line Quantity" states="partially_available,assigned" type="object" class="oe_highlight"
attrs="{'invisible': ['|', ('picking_type_code', '!=', 'incoming')]}"/>
</button>
<xpath expr="//field[@name='product_id']" position="attributes">
<xpath expr="//field[@name='move_ids_without_package']//field[@name='product_id']" position="attributes">
<attribute name="domain">[('main_seller_id', '=', parent.partner_id)]</attribute>
</xpath>
</field>

Loading…
Cancel
Save