-
-
Notifications
You must be signed in to change notification settings - Fork 619
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][ADD] pos_partner_pricelist_load_background #1243
base: 16.0
Are you sure you want to change the base?
[16.0][ADD] pos_partner_pricelist_load_background #1243
Conversation
17fe4ae
to
9c85e95
Compare
6d711b5
to
149711f
Compare
6e61464
to
3397d48
Compare
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.
not an expert but LGTM
3397d48
to
ee52209
Compare
d813f16
to
b6d0567
Compare
b6d0567
to
8979a5d
Compare
class POSSession(models.Model): | ||
_inherit = "pos.session" | ||
|
||
def get_pos_ui_partner_pricelist_background(self, pricelist_id, product_ids): |
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.
would be nice to see a docstring and a test for this
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.
Added doc string and unit test.
8979a5d
to
8ac4677
Compare
This module allow you to load a pricelist for a customer in the background.
Context
In the POS, we can configure a list of available pricelists. These price lists are loaded during start-up and only these can be chosen for any order.
When a customer is selected, the POS will try to find the customer's pricelist (property_pricelist_id) among the available pricelists.
If it's found, the pricelist is selected otherwise a default one will be selected instead.
Whith this module
When a customer is selected, his pricelist (property_pricelist_id) is loaded and available to be chosen.