ai*
This commit is contained in:
20
ai_stock/data/ai_prompt_button_data.xml
Normal file
20
ai_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_stock_move" model="ai.prompt.button">
|
||||
<field name="name">Single most common stock move from/to</field>
|
||||
<field name="prompt">
|
||||
Search the Stock Moves (model_name: stock.move), and find the most common move (the one with the highest count).
|
||||
The result should include the name of the product moved (field_name: product_id), the From location (field_name: location_id), the To location (field_name: location_dest_id),
|
||||
and the forecasted location if any (field_name: forecasted_location_id) of this move, the sum of the quantity moved (field_name: product_qty) and the total number of moves (count).
|
||||
If no forecasted location, don' t add it to the result. Don't mention model_name, field_name or any records ids in the response.
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="ai.ai_systray_action" model="ai.composer">
|
||||
<field name="available_prompt_ids" eval="[
|
||||
(4, ref('ai_stock.ai_prompt_stock_move')),
|
||||
]"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user