-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[ADD] product_type_kit: kit product added with sub product selection … #884
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
base: 18.0
Are you sure you want to change the base?
Conversation
…wizards Implemented 'Is Kit' boolean field on product form to enable kit functionality Added many2many field to link subproducts with main kit product Implemented conditional visibility for subproduct when 'Is Kit' is enabled Enabled button on sale order line to configure subproducts via wizard Main product price auto-calculates from subproduct total Implemented checkbox to control visibility of subproducts in print reports Ensured deletion of main product also removes all related subproduct lines
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.
from odoo.exceptions import UserError | ||
|
||
|
||
class SaleOrder(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.
Name your class SaleOrderLine
.
@@ -0,0 +1,42 @@ | |||
# models/sale_order_line.py |
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.
?
@@ -0,0 +1,46 @@ | |||
# wizards/kit_sub_product_wizard.py |
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.
?
Implemented 'Is Kit' boolean field on product form to enable kit functionality Added many2many field to link subproducts with main kit product Implemented conditional visibility for subproduct when 'Is Kit' is enabled Enabled button on sale order line to configure subproducts via wizard Main product price auto-calculates from subproduct total Implemented checkbox to control visibility of subproducts in print reports Ensured deletion of main product also removes all related subproduct lines