From f0770ff02ffcd87d515ef6beb0f75c27a8277492 Mon Sep 17 00:00:00 2001 From: Augustin Borsu Date: Sat, 8 Jun 2019 16:05:53 +0200 Subject: [PATCH] [IMP] beesdoo_inventory: add filter on add item to reciept Added a domain to filter proposed products on the reciept view. Only products whose main seller are the reciept's partner are proposed in the auto-complete/selection. --- beesdoo_inventory/__openerp__.py | 2 +- beesdoo_inventory/views/stock.xml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/beesdoo_inventory/__openerp__.py b/beesdoo_inventory/__openerp__.py index 80b9ff8..5c47099 100644 --- a/beesdoo_inventory/__openerp__.py +++ b/beesdoo_inventory/__openerp__.py @@ -17,7 +17,7 @@ # Check https://github.com/odoo/odoo/blob/master/openerp/addons/base/module/module_data.xml # for the full list 'category': 'Sales Management', - 'version': '0.1', + 'version': '9.0.1.0.0', # any module necessary for this one to work correctly 'depends': ['delivery', 'beesdoo_base'], diff --git a/beesdoo_inventory/views/stock.xml b/beesdoo_inventory/views/stock.xml index d095f3f..e783655 100644 --- a/beesdoo_inventory/views/stock.xml +++ b/beesdoo_inventory/views/stock.xml @@ -27,7 +27,10 @@ + + [('main_seller_id', '=', parent.partner_id)] + - \ No newline at end of file +