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

[16.0][ADD] product_packaging_multi_barcode_stock_menu: view packaging on barcode list #541

Open
wants to merge 7 commits into
base: 16.0
Choose a base branch
from

Conversation

santostelmo
Copy link
Contributor

Show packaging field in product barcode tree view

Copy link

@sebalix sebalix left a comment

Choose a reason for hiding this comment

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

Cannot do that, product.barcode.packaging_id field is part of product_packaging_multi_barcode module, so this doesn't respect the inheritance.

@sebalix sebalix changed the title [IMP] product_multi_barcode_stock_menu tree view packaging [16.0][IMP] product_multi_barcode_stock_menu tree view packaging Nov 20, 2023
@santostelmo
Copy link
Contributor Author

product_packaging_multi_barcode

@sebalix Should I make product_multi_barcode_stock_menu dependent of product_packaging_multi_barcode ?

@sebalix
Copy link

sebalix commented Nov 20, 2023

@santostelmo no we cannot do that neither sadly. I think the way it has been designed, we have to create a product_packaging_multi_barcode_stock_menu module to handle this need.
I know its overkill but I do not see another solution.

In the long term, as both product and packaging are part of Odoo std (product module), I'm wondering why product_multi_barcode and product_packaging_multi_barcode couldn't be merge in one module (you install it and you get all your models coming from product extended with this multi barcodes feature), so we could have only one extra module that make the glue between product_multi_barcode with stock (without restricting this to a menu, so a better name would have been product_multi_barcode_stock for instance).
But I don't know these modules nor why it has been designed this way, so for now we have to stick with what we have.

cc @simahawk

@santostelmo santostelmo force-pushed the 16.0-imp-product_multi_barcode_stock_menu-view-packaging branch from 0a3565e to 06f1912 Compare November 21, 2023 13:01
@santostelmo
Copy link
Contributor Author

@santostelmo no we cannot do that neither sadly. I think the way it has been designed, we have to create a product_packaging_multi_barcode_stock_menu module to handle this need. I know its overkill but I do not see another solution.

In the long term, as both product and packaging are part of Odoo std (product module), I'm wondering why product_multi_barcode and product_packaging_multi_barcode couldn't be merge in one module (you install it and you get all your models coming from product extended with this multi barcodes feature), so we could have only one extra module that make the glue between product_multi_barcode with stock (without restricting this to a menu, so a better name would have been product_multi_barcode_stock for instance). But I don't know these modules nor why it has been designed this way, so for now we have to stick with what we have.

cc @simahawk

@sebalix I have created the module product_packaging_multi_barcode_stock_menu

@santostelmo santostelmo changed the title [16.0][IMP] product_multi_barcode_stock_menu tree view packaging [16.0][ADD] product_multi_barcode_stock_menu-view-packaging tree view packaging Nov 21, 2023
@santostelmo santostelmo changed the title [16.0][ADD] product_multi_barcode_stock_menu-view-packaging tree view packaging [16.0][ADD] product_packaging_multi_barcode_stock_menu-view-packaging tree view packaging Nov 21, 2023
@santostelmo santostelmo changed the title [16.0][ADD] product_packaging_multi_barcode_stock_menu-view-packaging tree view packaging [16.0][ADD] product_packaging_multi_barcode_stock_menu-view packaging on barcode list Nov 21, 2023
@santostelmo santostelmo force-pushed the 16.0-imp-product_multi_barcode_stock_menu-view-packaging branch 4 times, most recently from 0fa8585 to 30cd8b2 Compare November 21, 2023 13:36
Copy link

@sebalix sebalix left a comment

Choose a reason for hiding this comment

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

Thank you, would like to hear another opinion about this though, as I do not know these modules a lot

product_packaging_multi_barcode_stock_menu/__manifest__.py Outdated Show resolved Hide resolved
product_packaging_multi_barcode/README.rst Outdated Show resolved Hide resolved
@QuocDuong1306
Copy link

Ping @santostelmo , Could you help to fix this?

@santostelmo santostelmo force-pushed the 16.0-imp-product_multi_barcode_stock_menu-view-packaging branch from 30cd8b2 to cc0f210 Compare January 5, 2024 06:51
@santostelmo
Copy link
Contributor Author

@QuocDuong1306 I fixed the points mentioned above. @sebalix could you please check your change requests ?

Copy link

@sebalix sebalix left a comment

Choose a reason for hiding this comment

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

LG, can you add (in a separate commit) a ROADMAP.rst entry in product_packaging_multi_barcode module to merge it in product_multi_barcode for the next migration, and same for product_packaging_multi_barcode_stock_menu + product_multi_barcode_stock_menu to merge them in a new module product_multi_barcode_stock.

At the end we'll get only two modules, one depending exclusively on product, the other one being a glue module extending the first by adding a dependency on stock.

@sebalix sebalix changed the title [16.0][ADD] product_packaging_multi_barcode_stock_menu-view packaging on barcode list [16.0][ADD] product_packaging_multi_barcode_stock_menu: view packaging on barcode list Jan 5, 2024
@sebalix sebalix requested a review from simahawk January 5, 2024 12:44
Copy link
Contributor

@cyrilmanuel cyrilmanuel left a comment

Choose a reason for hiding this comment

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

Not an expert but LGTM

@cyrilmanuel cyrilmanuel force-pushed the 16.0-imp-product_multi_barcode_stock_menu-view-packaging branch 2 times, most recently from 5b37b16 to 13fefcf Compare April 3, 2024 06:34
@cyrilmanuel
Copy link
Contributor

missing script on pre to change module name if its already installed

@cyrilmanuel cyrilmanuel force-pushed the 16.0-imp-product_multi_barcode_stock_menu-view-packaging branch from 13fefcf to 0d93ab9 Compare July 15, 2024 08:47
@cyrilmanuel cyrilmanuel force-pushed the 16.0-imp-product_multi_barcode_stock_menu-view-packaging branch 3 times, most recently from 06761f6 to 75d0465 Compare July 15, 2024 12:02
@cyrilmanuel cyrilmanuel force-pushed the 16.0-imp-product_multi_barcode_stock_menu-view-packaging branch from 75d0465 to 7698fda Compare July 19, 2024 07:22
@simahawk simahawk changed the title [16.0][ADD] product_packaging_multi_barcode_stock_menu: view packaging on barcode list [16.0][ADD] product_packaging_multi_barcode_stock: view packaging on barcode list Jul 22, 2024
Copy link

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

@@ -6,7 +6,7 @@
"license": "AGPL-3",
"author": "Camptocamp, Odoo Community Association (OCA)",
"category": "Product Management",
"depends": ["product_multi_barcode", "product_multi_barcode_stock_menu"],
"depends": ["product_multi_barcode", "product_multi_barcode_stock"],

Choose a reason for hiding this comment

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

we need a manual version change here as we'll have to merge the PR w/ nobump

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

1 similar comment
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@simahawk simahawk changed the title [16.0][ADD] product_packaging_multi_barcode_stock: view packaging on barcode list [16.0][ADD] product_packaging_multi_barcode_stock_menu: view packaging on barcode list Jul 22, 2024
@simahawk
Copy link

@santostelmo this PR deserves a better description explaining the changes 😉

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved needs fixing ready to merge stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants