Skip to content
Snippets Groups Projects
Commit 195f603c authored by Maitri Patel's avatar Maitri Patel
Browse files

[FIX] purchase: prevent traceback when creating PO without company_id


when the user removes the company_id and add a line in the purchase order
then the issue is generated.

Steps to reproduce:

- Create a new purchase order.
- Remove the company_id in the Purchase order.
- Now add a line in PO. Select a product with the consumable product type.
- Traceback will be generated.

Applying these changes will resolve this issue.

Sentry-4215579151

closes odoo/odoo#123061

Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
parent 6ef080a4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment