Odoo Aide

0

0
2 Answers
0
Jack
11/05/2019 03:27

oh sorry . we did some group restrictions.


        <record model="ir.ui.view" id="pick_from_sale_order_line_extended_2_form_view">
                <field name="name">pick_from_sale.extended_2_sale_order_line</field>
                <field name="model">sale.order</field>
                <field name="inherit_id" ref="custom_partner.sale_order_line_extended_2_form_view" />
                <field name="groups_id" eval="[(6, 0, [ref('custom_partner.shopsales')])]"/>
                <field name="arch" type="xml">
                    <xpath expr="//field[@name='pick_from']" position="attributes">
                        <attribute name="required">True</attribute>
                    </xpath>
                </field>
        </record>
                       

but there we just wanted to achieve that users from different groups should have a single field required.

But now it seems to make the whole view be restricted to this group.


1 Commentaires
Ermin Trevisan
11/05/2019 04:37

I believe you will always run into problems because of your manifold customizations. I'm not sure if your approach is really constructive.

Poser une question
Writer
Keep Informed
1 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now