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

[FIX] sale: Check product exists or not on Invoice creation #32965

Open
wants to merge 1 commit into
base: 12.0
from

Conversation

Projects
None yet
2 participants
@sswapnesh
Copy link
Contributor

commented Apr 25, 2019

Description of the issue/feature this PR addresses: Sale module

Current behavior before PR:

  • Set Down payment Product from Sales Settings (Or let Odoo create default Product for First time)
  • It will set ICP with Ref: sale.default_deposit_product_id
  • Delete the Product
  • Go to Sales -> Create Invoice
  • Error saying Record does not exist or has been deleted. (that's because of it is trying to access property_account_income_id/taxes_id from Non existing Product)

Desired behavior after PR is merged: No Error, Odoo will handle this by creating new Product and Set correct ICP

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.