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

[16.0] sale_manual_delivery: Install on large database is too long #3476

Open
rousseldenis opened this issue Dec 10, 2024 · 1 comment · May be fixed by #3477
Open

[16.0] sale_manual_delivery: Install on large database is too long #3476

rousseldenis opened this issue Dec 10, 2024 · 1 comment · May be fixed by #3477
Labels
Milestone

Comments

@rousseldenis
Copy link
Contributor

The pre init script is too long.

IMHO:

  • The creation of qty_procuredfield should be initialized with 0 default value there:

ALTER TABLE sale_order_line ADD COLUMN IF NOT EXISTS qty_procured numeric;

  • The filling in for that value should be done for lines that have their qty_delivered_method to stock_moveonly. See compute method:

if line.qty_delivered_method == "stock_move":

@ChrisOForgeFlow @nguyenhk @lmignon

@rousseldenis
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant