Hello,
I've been running a PHP script (to import data from ecommerce) successfully for months, but suddenly I encountered a strange issue that isn't well documented by the error output.
I am using ripcord.
In the logs
... Login successful for db:XXX
... "POST /xmlrpc/2/common HTTP/1.0" 200 - 33 0.020 1.648
... "POST /xmlrpc/2/object HTTP/1.0" 200 - 21 0.023 0.020
... "POST /xmlrpc/2/object HTTP/1.0" 200 - 190 0.125 0.050
... "POST /xmlrpc/2/object HTTP/1.0" 200 - 5 0.002 0.003
... "POST /xmlrpc/2/object HTTP/1.0" 200 - 3 0.001 0.003
... "POST /xmlrpc/2/object HTTP/1.0" 200 - 88 0.035 0.040
The requests following the login include:
search sale.logo
read crm.team
read product.product
create res.partner
...
Next, there's a sale.order creation, and the UID just disappears without any clear message. In the logs, I get:
... Access Denied by ACLs for operation: read, uid: None, model: sale.order
followed by a series of errors until this message:
Sorry, you are not allowed to access documents of type 'Sales Order' (sale.order). This operation is allowed for the groups:\n\t- Accounting/Accountant\n\t- Accounting/Billing\n\t- Inventory/User\n\t- Manufacturing/User\n\t- Sales/Administrator\n\t- Sales/User: Own Documents Only\n\t- User types/Portal - (Operation: read, User: None)", None
However, this doesn’t seem related to my problem. Obviously, a uid:none has no permissions. I'm wondering why UID is getting lost and how I can go about debugging this. Why don't I get a helpful message in the logs ?
Apparently, nothing was changed in the Odoo configuration.
Does anyone have any insights?
Best regards,
JL