-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[17.0][MIG] web_widget_x2many_2d_matrix #2744
[17.0][MIG] web_widget_x2many_2d_matrix #2744
Conversation
of one of the axes is a many2one field
[ADD] show grand total [IMP] classify floats as floats
[IMP] write formatted value to back to input
[RFR] and being on it, make reacting to changes in overrides simple
this is necessary for correct operation after creating new records
* README update to newest OCA template * Example in README * Massive performance boost for big matrices, specially on Firefox * Assign id on row in order to find it back in all cases * Fix OCA#321, choked on cached writes
Declare as many options prefixed with this string as you need for binding a field value with an HTML node attribute (disabled, class, style...) called as the `<name>` passed in the option. NOTE: This doesn't prevent to require to fill the full matrix with all the combination records.
…s_clickable attrs XML attributes for the widget that allows to configure if the axis will be clickable or not in case the source field is a many2one field.
…native values for headers of rows and columns working
[MIG] web_widget_x2_many_2d_matrix: Migration to 16.0 (WIP, columns) [MIG] web_widget_x2_many_2d_matrix: Migration to 16.0 (WIP, rows) [MIG] web_widget_x2_many_2d_matrix: Migration to 16.0 (WIP, add value component) Aggregated values [MIG] web_widget_x2many_2d_matrix: Fix commitChanges of matrix. [FIX] Fix commitChanges [FIX] setDirty [FIX] Aggregated values [IMP] readonly working [FIX] Update matrix on changing props [FIX] Remove old files [IMP] Run precommit stuff [FIX] Remove deprecated readme sections [MIG] Migrate show_row_totals and show_column_totals attributes [MIG] sticky headers Fixup Fixup Fixup fixup remove console.log fixup
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: web-16.0/web-16.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_x2many_2d_matrix/
Currently translated at 100.0% (1 of 1 strings) Translation: web-16.0/web-16.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_x2many_2d_matrix/de/
[FIX] web_widget_x2many_2d_matrix: many2one domain issue
Currently translated at 100.0% (1 of 1 strings) Translation: web-16.0/web-16.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_x2many_2d_matrix/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: web-16.0/web-16.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_x2many_2d_matrix/
Currently translated at 100.0% (1 of 1 strings) Translation: web-16.0/web-16.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_x2many_2d_matrix/it/
Hey! I tried this code in Odoo 17 and this error is showing up:
I'm new at Owl and it's proving a bit hard to detect why that error is happening |
you can enable debug=assets to have a more explicit error. |
Hey, thanks for the tip! I did that but I'm getting the same error. However, I've been taking a look at the source code and I think the problem is related to the fact that the This was the previous definition: /** @odoo-module **/
export const standardFieldProps = {
id: { type: String, optional: true },
name: { type: String, optional: true },
readonly: { type: Boolean, optional: true },
record: { type: Object, optional: true },
type: { type: String, optional: true },
update: { type: Function, optional: true },
value: true,
decorations: { type: Object, optional: true },
setDirty: { type: Function, optional: true },
}; and this is the new one /** @odoo-module **/
/**
* @typedef StandardFieldProps
* @property {string} [id]
* @property {string} name
* @property {boolean} [readonly]
* @property {import("@web/model/relational_model/record").Record} record
*/
export const standardFieldProps = {
id: { type: String, optional: true },
name: { type: String },
readonly: { type: Boolean, optional: true },
record: { type: Object },
}; So, we need to amend the widget to use this new fields |
duplicate of #2756 |
The 16.0 fix for "editable boolean" is causing this in 17.0:
Error: Patch "web_widget_x2many_2d_matrix": Second argument is not the patch name anymore, it should be the object containing the patched properties