Friday, May 22, 2020
14 changes · master
Enhancements to existing features
Users can now archive old partner bank accounts when bank details change, instead of keeping obsolete records active. This helps keep partner financial information cleaner while preserving historical data.
Original PR description
Description of the issue/feature this PR addresses: If partner change bank account, it is impossible to archive him. @nim-odoo -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
This fixes an issue where newly created users with default access rights could not open the Expenses area from the dashboard if they did not yet have an employee record. After the change, those users can access the expense section as expected, reducing setup friction for administrators and employees.
Original PR description
Currently, when a user created with default access rights, but doesn't have employee then they can not access expanse with dashboard header. After this commit, created user can also access expense. Task-Id: 2262636 PR #51677 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
Miscellaneous changes
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 Forward-Port-Of: odoo/odoo#51593
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 Forward-Port-Of: odoo/odoo#51593
…form_view_bom_button` The button `action_open_product_lot` is added by the view `product_product_form_view_bom_button`. Both the current view and the view `product_product_form_view_bom_button` inherited from the view `product.product_normal_form_view`, without any priority specified. In order to make sure the button `action_open_product_lot` is in the view when the view `product_product_form_view_bom_button` is loaded, you either need to directly inherits from the view holding that
Original PR description
…form_view_bom_button` The button `action_open_product_lot` is added by the view `product_product_form_view_bom_button`. Both the current view and the view `product_product_form_view_bom_button`…
…form_view_bom_button` The button `action_open_product_lot` is added by the view `product_product_form_view_bom_button`. Both the current view and the view `product_product_form_view_bom_button` inherited from the view `product.product_normal_form_view`, without any priority specified. In order to make sure the button `action_open_product_lot` is in the view when the view `product_product_form_view_bom_button` is loaded, you either need to directly inherits from the view holding that button `product_form_view_procurement_button` either you need to increase the priority of the current view so `product_product_form_view_bom_button` is loaded in priority. Same thing for the view `product_template_form_view_bom_button` Upgrade Request 47960 ``` ValueError: Element '<xpath expr="//button[@name='action_open_product_lot']">' cannot be located in parent view Error context: View `product.product.procurement` [view_id: 783, xml_id: mrp.product_product_form_view_bom_button, model: product.product, parent_id: 319] ``` Forward-Port-Of: odoo/odoo#51652
The `@api.model` decorator prevent the call to the method. opw-2262445 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 Forward-Port-Of: odoo/odoo#51668
Original PR description
The `@api.model` decorator prevent the call to the method. opw-2262445 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 Forward-Port-Of: odoo/odoo#51668
Create a promotion program with conditions: - Minimum purchase in currency (ex 100$ tax excluded) - Auto apply - On current order - Unlimited use And reward: - Free product - 1 Quantity Go to website shop. Fill an order with amount above the minimum required by the program. The promo will apply and add the free product. Increasing the order amount will eventually make the free product quantity increase, eventually overcoming the reward product quantity. Fixing by calculating
Original PR description
Create a promotion program with conditions: - Minimum purchase in currency (ex 100$ tax excluded) - Auto apply - On current order - Unlimited use And reward: - Free product - 1 Quantity Go to website shop. Fill an order with amount above the minimum required by the program. The promo will apply and add the free product. Increasing the order amount will eventually make the free product quantity increase, eventually overcoming the reward product quantity. Fixing by calculating the reward quantity using both minimum quantity and minimum amount and using as cap the to reward product quantity currently in cart opw-2246138 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#51469 Forward-Port-Of: odoo/odoo#51452
- Go to Expenses > My Expenses - Create a new Expense and save it (check the Product and the associated Account) - Create a report - Submit it to manager - Refuse it - Return to the expense and edit it - Change the Product. If the product is associated to another Account, the Account will also changed - Save the expense The Product has been modified but not the Account which has been reverted to its previous value. Just setting the readonly attribute of Account (account_id) to False i
Original PR description
- Go to Expenses > My Expenses - Create a new Expense and save it (check the Product and the associated Account) - Create a report - Submit it to manager - Refuse it - Return to the expense and edit…
- Go to Expenses > My Expenses - Create a new Expense and save it (check the Product and the associated Account) - Create a report - Submit it to manager - Refuse it - Return to the expense and edit it - Change the Product. If the product is associated to another Account, the Account will also changed - Save the expense The Product has been modified but not the Account which has been reverted to its previous value. Just setting the readonly attribute of Account (account_id) to False in refused state is not enough. As the modification of Account is explicitely blocked in the overridden write method, it seems more appropriate to not allowing Account to change when it is refused. Reverting commit: fe74b0c89a761bb8ba8c759c38f575701d133ec7 opw-2242949 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 Forward-Port-Of: odoo/odoo#51688 Forward-Port-Of: odoo/odoo#51667
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 Forward-Port-Of: odoo/odoo#51664 Forward-Port-Of: odoo/odoo#51588
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 Forward-Port-Of: odoo/odoo#51664 Forward-Port-Of: odoo/odoo#51588
- Confirm a Sale Order with a Customer Reference ('client_order_ref' field) set; - Validate the Delivery Order; - Print the Delivery Slip report; The display area of the Customer Reference field is not correct on the printed pdf report opw-2260756 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#51675
Original PR description
- Confirm a Sale Order with a Customer Reference ('client_order_ref'
field) set;
- Validate the Delivery Order;
- Print the Delivery Slip report;
The display area of the Customer Reference field is not correct on
the printed pdf report
opw-2260756
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#51675Before this commit, when a SysTray dropdown is open the user can scroll the element behind the dropdown. After this commit, we disable the scroll until we close the dropdown. Steps to reproduce: * Open Odoo on "Mobile" * Open the Activity SysTray * Scroll the "NavBar" menu (=> Bug) Note this fix is also applied in Desktop, as for me the "NavBar" shouldn't never scroll on Desktop. Task ID: 2231956 Task ID: 2234042 -- I confirm I have signed the CLA and read the PR guidelines
Original PR description
Before this commit, when a SysTray dropdown is open the user can scroll the element behind the dropdown. After this commit, we disable the scroll until we close the dropdown. Steps to reproduce: * Open Odoo on "Mobile" * Open the Activity SysTray * Scroll the "NavBar" menu (=> Bug) Note this fix is also applied in Desktop, as for me the "NavBar" shouldn't never scroll on Desktop. Task ID: 2231956 Task ID: 2234042 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#50310
fixes #45425 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#47205
Original PR description
fixes #45425 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#47205
Create a promotion program with conditions: - Minimum purchase in currency (ex 100$ tax excluded) - Auto apply - On current order - Unlimited use And reward: - Free product - 1 Quantity Go to website shop. Fill an order with amount above the minimum required by the program. The promo will apply and add the free product. Increasing the order amount will eventually make the free product quantity increase, eventually overcoming the reward product quantity. Fixing by calculating
Original PR description
Create a promotion program with conditions: - Minimum purchase in currency (ex 100$ tax excluded) - Auto apply - On current order - Unlimited use And reward: - Free product - 1 Quantity Go to website shop. Fill an order with amount above the minimum required by the program. The promo will apply and add the free product. Increasing the order amount will eventually make the free product quantity increase, eventually overcoming the reward product quantity. Fixing by calculating the reward quantity using both minimum quantity and minimum amount and using as cap the to reward product quantity currently in cart opw-2246138 Forward-Port-Of: odoo/enterprise#10646 Forward-Port-Of: odoo/enterprise#10527
Forward-Port-Of: odoo/enterprise#10705 Forward-Port-Of: odoo/enterprise#10701
Original PR description
Forward-Port-Of: odoo/enterprise#10705 Forward-Port-Of: odoo/enterprise#10701
- Go to Planning - Go to Configuration > Roles - Create a new role ("TEST_ROLE") - Go to Configuration > Shift Templates - Create a new shift template with the following data: * Role: "TEST_ROLE" * Start hour: 06:00 * Duration (hours): 8:06 - Go to My Planning > Calendar and switch to gantt view - Add a new shift - In the wizard select the Planning Template created for "TEST_ROLE". The options must look like "6:00 AM - 2:06 PM TEST_ROLE" Once the Planning Template selected, t
Original PR description
- Go to Planning
- Go to Configuration > Roles
- Create a new role ("TEST_ROLE")
- Go to Configuration > Shift Templates
- Create a new shift template with the following data:
* Role: "TEST_ROLE"
* Start hour: 06:00
* Duration (hours): 8:06
- Go to My Planning > Calendar and switch to gantt view
- Add a new shift
- In the wizard select the Planning Template created for "TEST_ROLE".
The options must look like "6:00 AM - 2:06 PM TEST_ROLE"
Once the Planning Template selected, the Start date and End date are automatically set,
but there are offset by one minute compared to the time configured in the template for the End date.
opw-2253554
Forward-Port-Of: odoo/enterprise#10681