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_level_sellable #1

Merged
merged 138 commits into from
Mar 12, 2024

Conversation

QuocDuong1306
Copy link
Owner

This module allows odoo users to set:

  • Can be sold: On product packaging type model, this checkbox defines if product
    packagings from this particular type are available to be selected on sale
    order line.

Copy link

@nilshamerlinck nilshamerlinck left a 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 also add a new column can be sold in the tree view

@@ -0,0 +1,20 @@
# Copyright 2020 Camptocamp SA

Choose a reason for hiding this comment

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

2023

@@ -0,0 +1,16 @@
# Copyright 2020 Camptocamp SA

Choose a reason for hiding this comment

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

2023



class SaleOrderLine(models.Model):

Choose a reason for hiding this comment

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

Suggested change

Comment on lines 3 to 4
* Can be sold: On product packaging type model, this checkbox defines if product
packagings from this particular type are available to be selected on sale

Choose a reason for hiding this comment

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

Suggested change
* Can be sold: On product packaging type model, this checkbox defines if product
packagings from this particular type are available to be selected on sale
* Can be sold: On product packaging level model, this checkbox defines if product
packagings from this particular level are available to be selected on sale

cls.product = cls.env.ref("product.product_product_9")

@classmethod
def setUpClassPackagingType(cls):

Choose a reason for hiding this comment

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

Suggested change
def setUpClassPackagingType(cls):
def setUpClassPackagingLevel(cls):

self.order_line.write(
{"product_packaging_id": self.packaging_cannot_be_sold.id}
)
# Packaging can be sold even if the packaging type does not allows it

Choose a reason for hiding this comment

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

Suggested change
# Packaging can be sold even if the packaging type does not allows it
# Packaging can be sold even if the packaging level does not allows it

@QuocDuong1306 QuocDuong1306 force-pushed the 16.0-add-product_packaging_level_sellable branch from be3aa63 to db5a1ef Compare July 28, 2023 05:01
@QuocDuong1306
Copy link
Owner Author

Hi @nilshamerlinck , I updated

@QuocDuong1306 QuocDuong1306 force-pushed the 16.0-add-product_packaging_level_sellable branch 2 times, most recently from 98999ff to 0da3ca1 Compare July 28, 2023 07:57
@QuocDuong1306 QuocDuong1306 force-pushed the 16.0-add-product_packaging_level_sellable branch 4 times, most recently from 3a41a36 to 24f1443 Compare August 1, 2023 03:25
Ivorra78 and others added 19 commits August 22, 2023 18:26
Currently translated at 100.0% (2 of 2 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_multi_category
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_multi_category/es/
Currently translated at 100.0% (27 of 27 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_assortment
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_assortment/es/
Currently translated at 100.0% (16 of 16 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_sequence
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_sequence/es/
Currently translated at 100.0% (28 of 28 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_logistics_uom
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_logistics_uom/es/
Currently translated at 100.0% (12 of 12 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_dimension
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_dimension/es/
Currently translated at 100.0% (33 of 33 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_state
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_state/es/
Currently translated at 100.0% (6 of 6 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_manufacturer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_manufacturer/es/
Currently translated at 100.0% (53 of 53 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_supplierinfo_for_customer
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_supplierinfo_for_customer/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_cost_security
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_cost_security/es/
Currently translated at 100.0% (24 of 24 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_secondary_unit/es/
Currently translated at 100.0% (22 of 22 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_simulation
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_simulation/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_net_weight
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_net_weight/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_simulation_margin
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_simulation_margin/es/
pablontura and others added 24 commits September 18, 2023 12:03
Currently translated at 96.0% (24 of 25 strings)

Translation: product-attribute-15.0/product-attribute-15.0-product_packaging_type
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_packaging_type/ca/
This new profile provides a computation method based on the number of sale order line delivered by products
Signed-off-by rousseldenis
Signed-off-by rousseldenis
@QuocDuong1306 QuocDuong1306 force-pushed the 16.0-add-product_packaging_level_sellable branch 2 times, most recently from a42afc1 to 290be00 Compare September 19, 2023 09:02
@QuocDuong1306 QuocDuong1306 force-pushed the 16.0-add-product_packaging_level_sellable branch from 290be00 to f4a45fb Compare September 19, 2023 14:42
@QuocDuong1306 QuocDuong1306 merged commit e1a7d05 into 16.0 Mar 12, 2024
6 checks passed
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.