Daily updates from Odoo
Monday, October 29, 2018
3 changes · master
Enhancements to existing features
This update reorganizes the campaign tracking and marketing link tools to make them easier to maintain and use. It also improves related views and navigation in mass mailing, helping users access link statistics and campaign information more clearly.
Original PR description
Purpose of this merge is to clean a bit link_tracker and utm as well as their
use in mass mailing. Main things done in this merge are
* reorganize link_tracker and utm according to guidelines. Purpose is
to ease code understanding and prepare future improvements in those
modules;
* clean views, add missing fields in views;
* better integration of link menus and views in mass mailing;
This commit is related to task ID 1896681.Leave types now have stable codes that can be used in payroll salary rules, instead of relying on translated leave names. This helps prevent payroll rule issues when users switch languages or rename leave types.
Original PR description
Before this commit, it was not straightforward to use leave records in salary rules programatically. This commit implements the standard and python-code compatible way of defining leave codes which…
Before this commit, it was not straightforward to use leave records in salary rules programatically. This commit implements the standard and python-code compatible way of defining leave codes which then can be used in the salary rules in the used way. This way, the naming of leaves will not be restricted to python-attribute compatible naming, when one wants to use this feature. **Description of the issue/feature this PR addresses:** - Leave names (translatable) are an unreliable identification in python code salary rules **Current behavior before PR:** - A language switch would break python salary rules that use a leave type as input **Desired behavior after PR is merged:** - Leave types can be referenced in python salary rules in a stable way. **Note:** Please do not close, even if not immediately accepted (`wishlist` tag). This PR is meant to be carried along and actively maintained, until this semantic will be completed this way or another. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr @xoe-labs
Leave types can now have stable codes that payroll rules can use instead of relying on translated leave names. This makes salary calculations more reliable across different languages and allows leave names to remain flexible without breaking payroll logic.
Original PR description
Purpose ======= Before this commit, it was not straightforward to use leave records in salary rules programatically. This commit implements the standard and python-code compatible way of defining leave codes which then can be used in the salary rules in the used way. This way, the naming of leaves will not be restricted to python-attribute compatible naming, when one wants to use this feature. Leave names (translatable) are an unreliable identification in python code salary rules. A language switch would break python salary rules that use a leave type as input 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