Monday, January 2, 2017
5 changes · master
New functionality added to Odoo
This update introduces and stabilizes the Base Automation feature, enabling automated actions and rules to support business workflows. It also improves usability, adds demo/test coverage, and fixes errors that could occur when installing or using automation from Studio.
Original PR description
Task: https://www.odoo.com/web#id=29639&view_type=form&model=project.task&action=333&active_id=248&menu_id=4720
Enhancements to existing features
This update improves Odoo's template rendering so documents that use XML namespaces are generated more accurately and with fewer duplicate declarations. It also improves view matching for namespaced elements, helping complex document formats render and inherit correctly, though namespaced attributes are not yet covered.
Original PR description
- handle ns prefixes in static template (only print the xmlns attribute when needed) - handle ns prefixes in dynamic template (same) - pass the nsmap of the parent during t-call (so that redundant xmlns declaration aren't printed) - allow xpath on a ns prefixed element @Gorash is the last commit safe to merge? Still todo: handle ns prefixed attributes: in some complex document format like the office open xml for .docx, a tag can be ns prefixed and its attributes can also be ns prefixed but with others namespaces. This should be pretty easy to do (sanitize all attributes at the top of `_compile_static_node` and `_compile_tag` to restore the ns prefix). Not done because we don't need that feature at the moment. this pr contains #14816
Resolved issues and error corrections
Messages typed in the chatter are no longer erased when sending fails, such as during an internet connection problem. This helps users avoid losing drafted content and retry once the issue is resolved, while chat and Discuss behavior remains unchanged.
Original PR description
When a message is sent on the chatter and the call fails (for example because of an internet connection failure), the message was still cleared so the content was lost. This change keep the same behavior for chat window and discuss, but change the behavior in a chatter so the message is only cleared if the rpc has passed. opw-696971 __pr note:__ master retargeting of #14654
Code cleanup and technical improvements
The XML translation logic was rewritten to better handle content that uses XML namespaces, reducing the risk of translation issues in complex views or data files. The change also simplifies the underlying code and adds tests for namespaces, unicode characters, and invalid translations, improving reliability without changing normal user workflows.
Original PR description
The class `XMLTranslator` is replaced by a function `translate_xml_node` that takes an XML node and returns the translated XML node. The function is recursive and much simpler to understand than the former implementation.
This update cleans up and improves Odoo's automated server actions, including follower-related actions and website action views. It fixes several errors that could occur when automation actions run, making automated business workflows more reliable.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr