Monday, April 18, 2022
2 changes · master
Enhancements to existing features
This update makes it easier for external systems to create product variants in Odoo Sales. By handling data conversion in the right place, integrations can call the product variant creation process more directly and reliably.
Original PR description
### Current behavior before PR: The `product.template` model has a nice function `create_product_variant` that unfortunately expects its input to be in JSON. ### Desired behavior after PR is merged: JSON decoding is moved into the controller, such that the function can be called as expected. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Miscellaneous changes
This commit is to prevent "AttributeError: 'NoneType' object has no attribute '_name'" When an xmlid does not exists, the _xmlid_to_obj returns None and the condition was failing when trying to retrive the model name. Closes odoo/odoo#88273 Forward-Port-Of: odoo/odoo#88392
Original PR description
This commit is to prevent "AttributeError: 'NoneType' object has no attribute '_name'" When an xmlid does not exists, the _xmlid_to_obj returns None and the condition was failing when trying to retrive the model name. Closes odoo/odoo#88273 Forward-Port-Of: odoo/odoo#88392