Skip to content
Snippets Groups Projects
Commit 7b6d8751 authored by jvm-odoo's avatar jvm-odoo
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#39125

Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
parent 7174bd2f
No related branches found
No related tags found
Loading
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