-
-
Notifications
You must be signed in to change notification settings - Fork 714
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] product_list_price_from_pricelist: Automatically compute product list prices based on a pricelist. #1852
base: 16.0
Are you sure you want to change the base?
Conversation
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.
Tested and working as expected.
Maybe a little bit dangerous when the priceslist is based on the list price itself... but I guess that's not the purpose of it.
d4ef689
to
aefa06b
Compare
product_list_price_from_pricelist/views/res_config_settings_views.xml
Outdated
Show resolved
Hide resolved
product_list_price_from_pricelist/views/res_config_settings_views.xml
Outdated
Show resolved
Hide resolved
|
||
- Go to `Sales` -> `Configuration` -> `Settings`. | ||
- In the `Pricing` section, select the `Pricelist to compute sale price` created in the previous step. | ||
- Save the configuration |
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 think you should mention here also the main company thing.
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.
Updated, please let me know if now is ok for you
template.write({"list_price": new_price}) | ||
return True | ||
|
||
def _can_update_product_price(self): |
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.
Instead of having a method that gets the domain and then do a bool operation, do a method that returns the domain, and apply it directly on _get_all_templates_from_pricelist_item
for getting the applied items, returning empty if not applicable. This way, the logic is more direct.
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.
Updated, please let me know if now is ok for you
aefa06b
to
8530bcc
Compare
…t list prices based on a pricelist.
8530bcc
to
b8b0ede
Compare
TT54561
@Tecnativa @pedrobaeza @pilarvargas-tecnativa @chienandalu could you please review this, thanks!