ai*
This commit is contained in:
19
ai_sale_margin/data/ai_prompt_button_data.xml
Normal file
19
ai_sale_margin/data/ai_prompt_button_data.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user