Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[IMP] stock: Make inheritable domain to reserve moves on scheduler #427

Closed luisg123v closed 3 years ago

luisg123v commented 3 years ago

When the stock scheduler is run, one of the executed tasks is to reserve all possible moves. The domain used to determine what moves to reserve, unless recent versions, is harcoded.

This makes possible to inherit that behavior.

This is a backport of 027ff77a9e11.

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

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

luisg123v commented 3 years ago

@moylop260 could you merge, please?

This is an "inoffensive" change and it's already in newer versions.

CC @hbto @belisac

moylop260 commented 3 years ago

Make sense