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

[10.0] [IMP] purchase_requisition: prepare method for order lines creation #16080

Conversation

ThomasBinsfeld
Copy link
Contributor

@ThomasBinsfeld ThomasBinsfeld commented Mar 27, 2017

Description of the issue/feature this PR addresses:
Add a prepare method easy to override in Purchase Requisition Line to create the dictionary of values for order line creation.

Current behavior before PR:
The dictionary of purchase order lines values is built in the _onchange_requisition_id of Purchase Order. Custom modules cannot easily modify this dictionary.

Desired behavior after PR is merged:
The dictionary is built in an easy to override preparation method in Purchase Requisition Line, with api.multi decorator to access the purchase.requisition.line object on which we create the purchase order line.


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

Add a prepare method easy to override in Purchase Requisition Line to create the dictionary of values for order line creation
@adrienpeiffer
Copy link
Contributor

OPW 740248

@rim-odoo
Copy link
Contributor

Hello,

We generally do merge this kind of refactorings in master, not in a stable release.
Please note that there is already a _prepare_purchase_order_line in purchase.py in master.

Regards

(cc @mart-e )

@tivisse tivisse self-assigned this May 30, 2017
@tivisse
Copy link
Contributor

tivisse commented May 30, 2017

@ThomasBinsfeld Thanks for the feedback. Your improvement has been merged in master at 2742722

@tivisse tivisse closed this May 30, 2017
tivisse pushed a commit that referenced this pull request May 30, 2017
Closes #16080

Add a prepare method easy to override in Purchase Requisition Line to create the dictionary of values for order line creation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants