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

[15.0][ADD] sale_product_matrix_secondary_unit: New module #1854

Open
wants to merge 1 commit into
base: 15.0
Choose a base branch
from

Conversation

chienandalu
Copy link
Member

With this module we'll be able to set the secondary units in the product
matrix for a quick quotation for those products using this kind of
configurator.

Peek 22-01-2025 17-42

cc @Tecnativa TT52531

please take a look @sergio-teruel @CarlosRoca13 @pedrobaeza

@pedrobaeza pedrobaeza added this to the 15.0 milestone Jan 23, 2025
@CarlosRoca13
Copy link
Contributor

In runboat i got this error when opening the matrix:

Error: QWeb2 - template['product_matrix.matrix']: No enumerator given to foreach
    at Object.exception (http://oca-product-attribute-15-0-pr1854-7ca9f9ba4811.runboat.odoo-community.org/web/assets/debug/web.assets_common.js:57861:19) (/web/static/lib/qweb/qweb2.js:48)
    at Object.foreach (http://oca-product-attribute-15-0-pr1854-7ca9f9ba4811.runboat.odoo-community.org/web/assets/debug/web.assets_common.js:58023:22) (/web/static/lib/qweb/qweb2.js:210)
    at Engine.eval (eval at _render (http://oca-product-attribute-15-0-pr1854-7ca9f9ba4811.runboat.odoo-community.org/web/assets/debug/web.assets_common.js:58285:33), <anonymous>:19:23) (/web/static/lib/qweb/qweb2.js:472)
    at Engine._render (http://oca-product-attribute-15-0-pr1854-7ca9f9ba4811.runboat.odoo-community.org/web/assets/debug/web.assets_common.js:58274:58) (/web/static/lib/qweb/qweb2.js:461)
    at Engine.render (http://oca-product-attribute-15-0-pr1854-7ca9f9ba4811.runboat.odoo-community.org/web/assets/debug/web.assets_common.js:58266:26) (/web/static/lib/qweb/qweb2.js:453)
    at Engine._render (http://oca-product-attribute-15-0-pr1854-7ca9f9ba4811.runboat.odoo-community.org/web/assets/debug/web.assets_common.js:58296:29) (/web/static/lib/qweb/qweb2.js:483)
    at Engine.render (http://oca-product-attribute-15-0-pr1854-7ca9f9ba4811.runboat.odoo-community.org/web/assets/debug/web.assets_common.js:58266:26) (/web/static/lib/qweb/qweb2.js:453)
    at Class._openMatrixConfigurator (http://oca-product-attribute-15-0-pr1854-7ca9f9ba4811.runboat.odoo-community.org/web/assets/debug/web.assets_backend.js:153961:30) (/sale_product_matrix_secondary_unit/static/src/js/section_and_note_widget.js:61)
    at onSuccess (http://oca-product-attribute-15-0-pr1854-7ca9f9ba4811.runboat.odoo-community.org/web/assets/debug/web.assets_backend.js:151529:22) (/product_matrix/static/src/js/section_and_note_widget.js:78)

@sergio-teruel
Copy link
Contributor

Hi..
The name on secondary is not shown correctly, the used field seems name instead of display_name
image

In matrix view
image

Some errors are shown when I mix different secondary units on same sale order
image

We can define different seconday units by variant, This is not covered, is it?

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.

4 participants