changeset 8e6ce9b4dca8 in modules/purchase_request_quotation:default
details: 
https://hg.tryton.org/modules/purchase_request_quotation?cmd=changeset;node=8e6ce9b4dca8
description:
        Only allow the purchase request group to create quotations

        issue9029
        review262891002
diffstat:

 CHANGELOG    |  2 ++
 purchase.xml |  4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r 51807666f2ad -r 8e6ce9b4dca8 CHANGELOG
--- a/CHANGELOG Thu Mar 19 19:08:44 2020 +0100
+++ b/CHANGELOG Wed Mar 25 23:52:03 2020 +0100
@@ -1,3 +1,5 @@
+* Only allow the purchase request group to create quotations
+
 Version 5.4.0 - 2019-11-04
 * Bug fixes (see mercurial logs for details)
 
diff -r 51807666f2ad -r 8e6ce9b4dca8 purchase.xml
--- a/purchase.xml      Thu Mar 19 19:08:44 2020 +0100
+++ b/purchase.xml      Wed Mar 25 23:52:03 2020 +0100
@@ -124,6 +124,10 @@
             <field name="model">purchase.request,-1</field>
             <field name="action" ref="wizard_create_quotation"/>
         </record>
+        <record model="ir.action-res.group" 
id="wizard_create_quotation_group_purchase_request">
+            <field name="action" ref="wizard_create_quotation"/>
+            <field name="group" ref="purchase_request.group_purchase_request"/>
+        </record>
 
         <record model="ir.rule.group" id="rule_group_request_quotation">
             <field name="name">User in company</field>

Reply via email to