20 lines
853 B
XML
20 lines
853 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="ai_prompt_profit_margin_by_category" model="ai.prompt.button">
|
|
<field name="name">Display the profit margins by product category</field>
|
|
<field name="prompt">
|
|
Go to the Sales Analysis menu item (model_name: sale.report) and open the graph view of type "bar chart". Group by product category (field_name: categ_id).
|
|
Set the measure as margin directly without computing the available measures.
|
|
Don't mention model_name, field_name in the response.
|
|
</field>
|
|
</record>
|
|
|
|
<record id="ai.ai_systray_action" model="ai.composer">
|
|
<field name="available_prompt_ids" eval="[
|
|
(4, ref('ai_sale_margin.ai_prompt_profit_margin_by_category')),
|
|
]"/>
|
|
</record>
|
|
</data>
|
|
</odoo>
|