-
Notifications
You must be signed in to change notification settings - Fork 0
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
[16.0][ADD] product_packaging_level_sellable #1
Conversation
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.
I think you should also add a new column can be sold in the tree view
@@ -0,0 +1,20 @@ | |||
# Copyright 2020 Camptocamp SA |
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.
2023
@@ -0,0 +1,16 @@ | |||
# Copyright 2020 Camptocamp SA |
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.
2023
|
||
|
||
class SaleOrderLine(models.Model): | ||
|
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.
* 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 |
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.
* 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): |
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.
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 |
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.
# 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 |
be3aa63
to
db5a1ef
Compare
Hi @nilshamerlinck , I updated |
98999ff
to
0da3ca1
Compare
3a41a36
to
24f1443
Compare
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/
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/
…n logic pluggable
This new profile provides a computation method based on the number of sale order line delivered by products
…d to compute the classification
…stribution of produts
a42afc1
to
290be00
Compare
290be00
to
f4a45fb
Compare
This module allows odoo users to set:
packagings from this particular type are available to be selected on sale
order line.