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

[14.0][ADD] product_multi_barcode_constraint_per_company: add module #546

Conversation

dessanhemrayev
Copy link

@dessanhemrayev dessanhemrayev commented Oct 26, 2023

This is a bridge module between "product_multi_barcode" and "product_barcode_constraint_per_company"

@dessanhemrayev dessanhemrayev force-pushed the 14.0-t2944-product_multi_barcode_constraint_per_company-bridge_module branch 18 times, most recently from 51df296 to 6cc4f18 Compare October 29, 2023 19:04
@dessanhemrayev dessanhemrayev marked this pull request as ready for review October 29, 2023 19:08
@dessanhemrayev
Copy link
Author

Following this @legalsylvain 's comment.

@dessanhemrayev dessanhemrayev force-pushed the 14.0-t2944-product_multi_barcode_constraint_per_company-bridge_module branch 10 times, most recently from affa192 to bda8432 Compare October 30, 2023 21:33
@dessanhemrayev dessanhemrayev force-pushed the 14.0-t2944-product_multi_barcode_constraint_per_company-bridge_module branch 5 times, most recently from 3ef6439 to 11a15df Compare November 1, 2023 08:45
@api.constrains("name")
def _check_duplicates(self):
for record in self:
barcodes = self.search(

Choose a reason for hiding this comment

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

Could you add a limit parameter?
barcodes = self.search([...], limit=1)

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, I'll fix it now

Copy link

@geomer198 geomer198 left a comment

Choose a reason for hiding this comment

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

Please fix comments



@tagged("post_install", "-at_install")
class TestProductBarcodeConstraintInherit(TestModule):

Choose a reason for hiding this comment

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

For each tests need docstring and assertion message.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, I'll fix it now

@dessanhemrayev dessanhemrayev force-pushed the 14.0-t2944-product_multi_barcode_constraint_per_company-bridge_module branch 4 times, most recently from 2950ae7 to e62aea3 Compare November 5, 2023 20:05
@@ -0,0 +1 @@
This is a bridge module between "product_barcode_constraint_per_company" and "product_multi_barcode"

Choose a reason for hiding this comment

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

Should be remove this file. News fragments using for updating module not for creating.

Copy link

@geomer198 geomer198 left a comment

Choose a reason for hiding this comment

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

LGTM!

@dessanhemrayev dessanhemrayev force-pushed the 14.0-t2944-product_multi_barcode_constraint_per_company-bridge_module branch from fffbd4d to 557d86d Compare November 7, 2023 10:16
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.

2 participants