Skip to content
Snippets Groups Projects
Commit 0aea55ab authored by jvm-odoo's avatar jvm-odoo Committed by fw-bot
Browse files

[FIX] stock: fix delivery slip serial number creation


In deliveries slips, you can directly create a new serial number.
If you have multiples companies, a field "company" appears.
But if you have only one company, it doesn't appears and there is
no default value for it.

As the field is required, it returns an error "Company field required".

Before this commit:

    - The company_id field in stock_production_lot model does not
      have a default value.

After this commit:

    - The company_id field has a default value which is the user
      current company id.

OPW-2083099

closes odoo/odoo#39170

X-original-commit: 7b6d8751
Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
parent 7ef68e4b
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