So Im working on this code that creates new record in 'sign.send.request.signer' model. I currently use some test data
data = {
"role_id" : 1,
"partner_id" : 14,
"mail_sent_order" : 1,
}
# Create the record in sign.send.request.signer
env['sign.send.request.signer'].create(data)
Whenever I run this manually an error shows up
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/tools/safe_eval.py", line 390, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "ir.actions.server(899,)", line 29, in <module>
File "/mnt/enterprise_addons/sign/wizard/sign_send_request.py", line 230, in create
if not vals.get('partner_id'):
^^^^^^^^
AttributeError: 'str' object has no attribute 'get'
I assume the error tells me I'm passing a string and not a dictionary when creating a record. However its pretty obvious that Im passing 'data' and its a dictionary. Did I skip something or do something wrong? Or is this a bug?