-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
[18.0][MIG] product_pricelist_revision: Migration to 18.0 #1791
base: 18.0
Are you sure you want to change the base?
[18.0][MIG] product_pricelist_revision: Migration to 18.0 #1791
Conversation
1245f4d
to
a1f6631
Compare
a1f6631
to
947160c
Compare
/ocabot migration product_pricelist_revision |
[UPD] Update product_pricelist_revision.pot [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-12.0/product-attribute-12.0-product_pricelist_revision Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_pricelist_revision/
…t filter TT28144 [UPD] Update product_pricelist_revision.pot
Currently translated at 100.0% (30 of 30 strings) Translation: product-attribute-13.0/product-attribute-13.0-product_pricelist_revision Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-product_pricelist_revision/ca/
Before this change on runbot we caught a Warning about deprecated call to decimal_precision.get_precision(<application>) [UPD] README.rst product_pricelist_revision 13.0.1.1.0
Fix website key in the manifests
Currently translated at 31.0% (9 of 29 strings) Translation: product-attribute-14.0/product-attribute-14.0-product_pricelist_revision Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_pricelist_revision/it/
Currently translated at 100.0% (29 of 29 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_revision Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_revision/it/
- Include context keys for avoiding mail operations overhead.
Currently translated at 100.0% (29 of 29 strings) Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_revision Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_revision/fr/
947160c
to
d30d7fb
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.
Tested and working. Just a minor change to update the README. Please let me know if you have any questions.
TT54468
1. Go to *Sales \> Configuration \> Settings* and check "Pricelists" | ||
option and "Advanced price rules" after that. |
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.
@@ -0,0 +1,3 @@ | |||
This module adds a 'Pricelist items' tree view that allows to select |
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.
This module adds a 'Pricelist items' tree view that allows to select | |
This module adds a 'Pricelist items' list view that allows to select |
2. Add a Pricelist Items to that Price List. Set 'Fix Price' value on | ||
the field 'Compute Price' and set a fixed price. |
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.
from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT | ||
|
||
|
||
class TestProductPricelistRevision(TransactionCase): | ||
@classmethod | ||
def setUpClass(cls): | ||
super().setUpClass() | ||
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) |
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.
Could you please inherit from BaseCommon? and remove DISABLED_MAIL_CONTEXT
item.date_end = self.date_start - relativedelta(seconds=1) | ||
|
||
xmlid = "product_pricelist_revision.product_pricelist_item_action" | ||
action = self.env["ir.actions.act_window"]._for_xml_id(xmlid) |
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.
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.
Just here, try something like:
action = self.env["ir.actions.act_window"]._for_xml_id(xmlid) | |
action = self.env["ir.actions.act_window"]._for_xml_id(xmlid) | |
action["context"] = {} |
d30d7fb
to
d513073
Compare
@carlos-lopez-tecnativa, Please Review.all requested changes are fixed let me know if i missed anything.Thank you! |
] | ||
" | ||
/> | ||
<field name="context">{}</field> |
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.
In my previous comment, I didn’t mean to always remove the context from this action. I meant to remove only the specific key, but only when the wizard reads this action. Please restore this context in the action and remove only the specific key from the wizard.
item.date_end = self.date_start - relativedelta(seconds=1) | ||
|
||
xmlid = "product_pricelist_revision.product_pricelist_item_action" | ||
action = self.env["ir.actions.act_window"]._for_xml_id(xmlid) |
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.
Just here, try something like:
action = self.env["ir.actions.act_window"]._for_xml_id(xmlid) | |
action = self.env["ir.actions.act_window"]._for_xml_id(xmlid) | |
action["context"] = {} |
d513073
to
8c90201
Compare
@carlos-lopez-tecnativa, Please Review. |
Set new start date and variation percent to duplicate. | ||
This process set start date previous day as end date of | ||
origin record. |
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.
No description provided.