تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4799 أدوات العرض

I have added the margin and margin percent columns in the treeview of the Quotations and Sales Ordes pages, and I have also added the "sum" attributes to both columns.

<field name="arch" type="xml">
    <xpath expr="//field[@name='partner_id']" position="after">
        <field name="margin_percent" string="Margin Percent (%%)" groups="base.group_user" sum="Average Margins"/>
        <field name="margin" groups="base.group_user" sum="Total Margins"/>
    </xpath>
</field>

I would like to know if there is a way to change the "sum" attribute of the "Margin Percent" field to contain the average of the margin percents?

Any help is appreciated.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أكتوبر 24
1016
5
يوليو 18
9995
0
مارس 15
4588
2
مارس 15
10574
2
مارس 15
4511