Skip to content
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

[17.0][MIG] product_configurator #106

Closed
wants to merge 496 commits into from

Conversation

Nikul-OSI
Copy link

No description provided.

Pooja Khandelwal and others added 30 commits February 7, 2024 14:21
…for onchange_custom_type and val_custome_field method
…or product attributes onchange and constraint methods
…for check weight_extra method and write test cases
…tor_image_builder : add domain on value_id and value_ids and create a new field and add compute method.
…write test case for inverse method and check weight_extra method
@Nikul-OSI Nikul-OSI force-pushed the 17_mig_product_configurator branch 2 times, most recently from 696190f to 1857ed8 Compare February 14, 2024 11:43
@Nikul-OSI Nikul-OSI force-pushed the 17_mig_product_configurator branch 2 times, most recently from 185e5de to 4d439d3 Compare February 15, 2024 11:11
@Nikul-OSI
Copy link
Author

@PCatinean @dreispt @dannyadair Can you please take a look?

@Nikul-OSI Nikul-OSI changed the title [17.0][WIP] product_configurator [17.0][MIG] product_configurator Feb 15, 2024
@dreispt
Copy link
Member

dreispt commented Feb 22, 2024

@Nikul-OSI Why the PATCH labels in the history commits, can you please remove them?
Also, pre-commit is failing.

hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

@@ -183,16 +181,18 @@ def onchange_values(self):
def _check_default_values(self):
"""default value should not be outside of the
values selected in attribute line"""
for line in self.filtered(lambda l: l.default_val):
for line in self.filtered(lambda line: line.default_val):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure these changes were already in v16.
Can you check you brought over all commits there?

@@ -685,7 +685,7 @@ def write(self, vals):
try:
self.validate_configuration(final=False)
except ValidationError as exc:
raise ValidationError(_("%s") % exc.name) from exc
raise ValidationError(_("{}".format(exc)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe raise ValidationError(_("{}").format(exc))?
Or even better, I can't see the point for this except, what if we remove it?

)
specs.update(ch_specs)

# TODO :- Commented a code and ths code already base in a odoo base modules.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just delete the code then.

@dreispt
Copy link
Member

dreispt commented Feb 22, 2024

Superseded by #117 , that has the commit history fixed.
Feel free to continue the missing work there.

@dreispt dreispt closed this Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.