Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][WIP][FIX] fcd_sale_order: removed default pivot rows due to very slow initial load #56

Draft
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions fcd_sale_order/views/stock_move_line_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,16 @@
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_manager'))]" />
<field name="arch" type="xml">
<pivot string="Sales Margin by Move">
<field name="partner_id" type="row"/>
<!-- field name="partner_id" type="row"/ -->
<field name="product_id" type="row"/>
<field name="lot_id" type="row"/>
<field name="fcd_origin_lot_id" type="row"/>
<!-- field name="lot_id" type="row"/ -->
<!-- field name="fcd_origin_lot_id" type="row"/ -->
<field name="sale_date_order" interval="day" type="col"/>
<field name="qty_done" type="measure" string="Qty"/>
<field name="fcd_purchase_price_kg" type="measure"/>
<field name="sale_price_kg" type="measure"/>
<!-- TODO monetary widget doesn't work -->
<field name="sale_margin" type="measure" widget="monetary"/>
</pivot>
<field name="sale_margin" type="measure" widget="monetary"/> </pivot>
</field>
</record>
<record id="action_stock_move_line_sale_pivot" model="ir.actions.act_window">
Expand Down