suggest_account
Retrieve the most frequently used expense accounts for a supplier based on past bills, enabling accurate account assignment when creating purchase invoices.
Instructions
Which expense accounts this supplier's earlier bills were booked to, most used first. Empty for a supplier with no history. Call this before add_purchase_invoice so a recurring supplier keeps landing on the same account instead of a guess.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| supplier | Yes | Partner name, or the partner id as a number or a digit string |