odoo_xmlrpc_twisted.support.support_save_picture¶
Supporting program to test the module odoo_xmlrpc_twisted.functions.save_picture().
Functions
|
Function to test the module "save_picture" |
- odoo_xmlrpc_twisted.support.support_save_picture.support_save_picture(custom_product_id, custom_perspective, custom_image_name)[source]¶
Function to test the module “save_picture”
A picture stored in the current directory will be captured to a stream and will be saved in the Odoo Database with the function “save_picture” from that module.
- Returns:
The ID of the created attachment in Odoo (ir.attachment), or None if creation failed
- Return type: