Daily updates from Odoo
Tuesday, February 22, 2022
1 change · master
Code cleanup and technical improvements
This refactor improves the Sign backend so signing requests are more consistent, easier to maintain, and better tested. It also clarifies copied recipients, prevents canceled requests from being resent, and automatically sends completed documents to new copy recipients after signing.
Original PR description
From 14.3 to 15.0 a lot of features have been added and the code need to be cleaned. Alongside this cleaning are some behaviors to fix. This PR tries to improve and reorganize the code * more flexible to be extended in the future * less hack for other models * easier to be tested * less code * more general method name * more stable Unlike the previous implementation, in the scope of Sign, you can call any public method(except `write` `create` and `unlink`) whenever you like from other model or RPC. Illegal state/input will trigger an error. The backend test is added for sign.template and sign.request. Almost every use case is tested See the details in each commit task id: 2659342