[16.0][ADD] pos_partner_pricelist_load_background#1243
Conversation
17fe4ae to
9c85e95
Compare
6d711b5 to
149711f
Compare
6e61464 to
3397d48
Compare
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.
would be nice to see a docstring and a test for this
There was a problem hiding this comment.
Added doc string and unit test.
8979a5d to
8ac4677
Compare
7db1a6d to
51cd598
Compare
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
51cd598 to
80019ee
Compare
|
hi @OCA/pos-maintainers could we merge this PR please :) |
|
This PR has the |
1 similar comment
|
This PR has the |
|
/ocabot merge nobump |
|
This PR looks fantastic, let's merge it! |
|
Congratulations, your PR was merged at cdf4062. Thanks a lot for contributing to OCA. ❤️ |
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.
With this module
When a customer is selected, their pricelist (property_pricelist_id) is loaded and available to be chosen.