ai*
This commit is contained in:
20
ai_sale_stock/data/ai_prompt_button_data.xml
Normal file
20
ai_sale_stock/data/ai_prompt_button_data.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="ai_prompt_low_stock_pivot" model="ai.prompt.button">
|
||||
<field name="name">Pivot of products with less than 5 in stock</field>
|
||||
<field name="prompt">
|
||||
Open the pivot view of Sales Analysis (model_name: sale.report). Filter the view by products with less than 5 in stock
|
||||
(field_name: product_id.qty_available). Group by product variant (field_name: product_id) and set the measure directly as the
|
||||
ordered quantity (measure_name: product_uom_qty) without computing the available measures.
|
||||
Don't mention model_name, field_name, measure_name or any record ids in the response.
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="ai.ai_systray_action" model="ai.composer">
|
||||
<field name="available_prompt_ids" eval="[
|
||||
(4, ref('ai_sale_stock.ai_prompt_low_stock_pivot')),
|
||||
]"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user