Skip to Content
Menu
This question has been flagged
2 Replies
1466 Views

first we developed most modifications with one odoo-user.

we use german language.

now we switched to another Odoo-Testuser and this user gets some labels with the wrong labelname.

we did no group specific modifications.


Example:

<record model="ir.ui.view" id="sale_order_line_extended_2_form_view">
            <field name="name">sale.extended_2_sale_order_line</field>
            <field name="model">sale.order</field>
            <field name="inherit_id" ref="sale.view_order_form" />
            <field name="arch" type="xml">
            <xpath expr="//field[@name='order_line']" position="inside">
                    <tree string="Sales Order Lines" decoration-danger="product_id==False"
                        decoration-info="invoice_status=='to invoice'" decoration-muted="is_set_line==True"
                        delete="false">
                        ...
                        ...
                        ..
                        <field name="product_uom_qty" string="Menge"
                            context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom, 'company_id': parent.company_id}" />
                        ...
                        ...


our Developement User sees the LAbel "Menge" for product_uom_qty, but our testuser now sees the ORiginal Label name for this field in FrontEnd


Avatar
Discard

Is both users are using same language ? As both users see different labels, the possible reason is the user language as you havent used and group concepts

Author Best Answer

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.


Avatar
Discard

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