Hello,
Try using context flags
In your automation rule
Add a condition to check for a context flag,
- Go to
settings → technical → automation rules
- Edit
your automation rule
- In the
conditions tab, add a python expression,
python
not env.context.get('skip_webhook_automation', False)
In your web app xml-rpc call
When updating from your web app, include the context flag,
python
# Python example for XML-RPC
import xmlrpc.client
# Your Odoo connection
odoo = xmlrpc.client.ServerProxy('http://your-odoo-instance/xmlrpc/2/object')
# Update with context to skip automation
result = odoo.execute_kw(
db, uid, password,
'res.partner', 'write',
[[partner_id], {'field_name': 'new_value'}],
{'context': {'skip_webhook_automation': True}}
)