Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3753 Tampilan

I have a module "achatextends" that inherits the module "purchase"

and I have 2 groups that are:

-group_purchase_user

-group_purchase_manager

I want users who are in the group "group_purchase_manager" to see all the Requests for Quotation in tree view

however, users who are in the group "group_purchase_user" just see the Requests for Quotation that created in tree view

how can I do ??

this is my tree view 


<tree decoration-bf="message_unread==True" decoration-muted="state=='cancel'" decoration-info="state in ('wait','confirmed')" string="Purchase Order">

                    <field name="message_unread" invisible="1"/>

                    <field name="name" string="Reference"/>

                    <field name="date_order"/>

                    <field name="partner_id"/>

                    <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>

                    <field name="date_planned" invisible="context.get('quotation_only', False)"/>

                    <field name="origin"/>

                    <field name="amount_untaxed" sum="Total Untaxed amount" string="Untaxed" widget="monetary"/>

                    <field name="amount_total" sum="Total amount" widget="monetary"/>

                    <field name="currency_id" invisible="1"/>

                    <field name="state"/>

                    <field name="invoice_status" invisible="not context.get('show_purchase', True)"/>

                </tree>

Avatar
Buang