Last active
September 7, 2022 06:19
-
-
Save tong-odoo/e025508b0f4fa81fea55643664c66fad to your computer and use it in GitHub Desktop.
Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if record.seller_ids: | |
for index, seller in enumerate(record.seller_ids.sorted(lambda s: (s.price, -s.min_qty, s.id)), 1): | |
seller.update({"sequence": index}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment