21 lines
964 B
XML
21 lines
964 B
XML
<?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>
|