summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2019-11-12 07:49:44 +0000
committerfw-bot <otis@odoo.com>2019-11-12 16:57:57 +0000
commitfd81920f1fc7977f05c62ea4639582be48397d0c (patch)
treec14b8344a35b756e95ed8734cd2a8eda48afb49a
parent2a875a404a40065321a28dd40bd258a2ebab059a (diff)
[FIX] stock_dropshipping: Creating a quotation without purchase permission
Fine tuning of this commit: f93fcaffb5287bc6ff52e33e3cc9edecb50058c4 Steps to reproduce the bug: - Open runbot v11 - Restrict Demo's access to Sales Manager for sales and employee for Employee - Try to create a new quotation Bug: - You got Odoo server Error Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that: - Inventory/User - Accounting & Finance/Billing - Purchases/User - Purchases/Manager - Other Extra Rights/Portal (Document model: purchase.order.line) - (Operation: read, User: 5) opw:2120692 closes odoo/odoo#40153 X-original-commit: 1b14af28fec3cae0efc4438e77e6e0925e487b89 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
-rw-r--r--addons/stock_dropshipping/views/sale_order_views.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/stock_dropshipping/views/sale_order_views.xml b/addons/stock_dropshipping/views/sale_order_views.xml
index b06b48ccab9..1cb225c3a30 100644
--- a/addons/stock_dropshipping/views/sale_order_views.xml
+++ b/addons/stock_dropshipping/views/sale_order_views.xml
@@ -5,6 +5,7 @@
<field name="name">sale.order.form.sale.dropshipping</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
+ <field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]"/>
<field name="arch" type="xml">
<xpath expr="//page/field[@name='order_line']/form//field[@name='product_updatable']" position="after">
<field name="purchase_line_count" invisible="1"/>