Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] hr_expense: remove taxes_id from product view #95088

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Jul 1, 2022

Reproduction:

  1. Install Expense in V15
  2. Go to Expense->Configuration->Expense Products
  3. Create a new product, after selecting a few Customer Taxes, click
    save, the selected taxes are not shown on the saved page

Reason: The taxes_id is defined twice. One is in the hr_view, another is
in the product_view of the module sale_expense. This causes the taxes
are not shown on the saved page after choosing and saving the customer
taxes. But when you Edit the product and choose another customer tax,
the chosen taxes appear again.

Fix: This fix changes the inherited view in sale_expense, to make sure
the selected customer taxes are not erased in the view. It's a safer fix
as it avoids potentially broken customization

opw-2852894

related change: odoo-dev@26a5653#diff-35ce298bc166ce5f8a1fb1a73ae7f7c7730e12925d518dedfab92ce63e6bb83dL527-L529

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #94671

Reproduction:
1. Install Expense in V15
2. Go to Expense->Configuration->Expense Products
3. Create a new product, after selecting a few Customer Taxes, click
save, the selected taxes are not shown on the saved page

Reason: The taxes_id is defined twice. One is in the hr_view, another is
in the product_view of the module sale_expense. This causes the taxes
are not shown on the saved page after choosing and saving the customer
taxes. But when you Edit the product and choose another customer tax,
the chosen taxes appear again.

Fix: This fix changes the inherited view in sale_expense, to make sure
the selected customer taxes are not erased in the view. It's a safer fix
as it avoids potentially broken customization

opw-2852894

related change: 26a5653#diff-35ce298bc166ce5f8a1fb1a73ae7f7c7730e12925d518dedfab92ce63e6bb83dL527-L529

X-original-commit: 5baee4a
@robodoo
Copy link
Contributor

robodoo commented Jul 1, 2022

@fw-bot
Copy link
Contributor Author

fw-bot commented Jul 1, 2022

Ping @Jinjiu96, @nle-odoo
This PR targets saas-15.1 and is the last of the forward-port chain.

To merge the full chain, say

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Jul 1, 2022
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Jul 1, 2022
@Jinjiu96
Copy link
Contributor

Jinjiu96 commented Jul 1, 2022

@fw-bot r+

robodoo pushed a commit that referenced this pull request Jul 1, 2022
Reproduction:
1. Install Expense in V15
2. Go to Expense->Configuration->Expense Products
3. Create a new product, after selecting a few Customer Taxes, click
save, the selected taxes are not shown on the saved page

Reason: The taxes_id is defined twice. One is in the hr_view, another is
in the product_view of the module sale_expense. This causes the taxes
are not shown on the saved page after choosing and saving the customer
taxes. But when you Edit the product and choose another customer tax,
the chosen taxes appear again.

Fix: This fix changes the inherited view in sale_expense, to make sure
the selected customer taxes are not erased in the view. It's a safer fix
as it avoids potentially broken customization

opw-2852894

related change: odoo-dev@26a5653#diff-35ce298bc166ce5f8a1fb1a73ae7f7c7730e12925d518dedfab92ce63e6bb83dL527-L529

closes #95088

X-original-commit: 5baee4a
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Liu Jinjiu (jili) <jili@odoo.com>
@robodoo robodoo closed this Jul 1, 2022
@robodoo robodoo temporarily deployed to merge July 1, 2022 15:35 Inactive
@fw-bot fw-bot deleted the saas-15.1-15.0-opw-2852894-hr_expense-remove_redundant_taxes_id-jili-8XCz-fw branch July 15, 2022 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants