-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
[17.0][ADD]: Improve pos_order_to_sale_order #1252
base: 17.0
Are you sure you want to change the base?
Conversation
Hi @legalsylvain, |
331b5ae
to
6103b98
Compare
6103b98
to
1d776c6
Compare
partner_pricelist = ( | ||
order_data["pricelist_id"] | ||
if order_data["pricelist_id"] | ||
else self.env["res.partner"] | ||
.browse(order_data["partner_id"]) | ||
.property_product_pricelist.id | ||
) | ||
self.pricelist_id = partner_pricelist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pricelist is selected on pos.order. Why the pricelist is not selected correctly in the point of sale ?
I don't get it. why the data are not in german in the point of sale ? |
In our case, a French vendor is using the pos to scan the articles. His/her system is in french. When creating the invoice for the partner, we want to use their language. |
.browse(order_data["partner_id"]) | ||
.property_product_pricelist.id | ||
) | ||
self.pricelist_id = partner_pricelist | ||
order_lines = [ | ||
Command.create(SaleOrderLine._prepare_from_pos(sequence, line_data[2])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess adding lang context over there should made the work.
Before Change:
After Merge: