This commit is contained in:
2026-11-08 20:08:53 +08:00
parent 7526a5fe4d
commit 9b924747c5
2692 changed files with 394867 additions and 0 deletions

View 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>