Skip to content

Commit 37a63ef

Browse files
committed
[FIX] account: search more props validation
Since this commit: odoo@0ecaa6e The props noSearchMore was removed but was kept in the FieldMany2ManyTagsBanks widget. When being in debug mode and going to the customer -> accounting tab, we have a props validation error. This commit will remove the noSearchMore options and props. Also, correcting some small linter issue no task id closes odoo#218202 X-original-commit: cdf3b53 Signed-off-by: Florian Gilbert (flg) <[email protected]> Signed-off-by: Maximilien La Barre (malb) <[email protected]>
1 parent 67e6a0c commit 37a63ef

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

addons/account/static/src/components/many2many_tags_banks/many2many_tags_banks.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export class FieldMany2ManyTagsBanks extends Many2ManyTagsFieldColorEditable {
4444
type: "ir.actions.act_window",
4545
name: _t("Banks"),
4646
res_model: this.relation,
47-
views: [[false, "list"], [false, "form"]],
47+
views: [
48+
[false, "list"],
49+
[false, "form"],
50+
],
4851
domain: this.getDomain(),
4952
target: "current",
5053
});
@@ -61,11 +64,6 @@ export const fieldMany2ManyTagsBanks = {
6164
name: "allow_out_payment_field",
6265
type: "boolean",
6366
},
64-
{
65-
label: _t("No search more"),
66-
name: "no_search_more",
67-
type: "boolean",
68-
},
6967
],
7068
additionalClasses: [
7169
...(many2ManyTagsFieldColorEditable.additionalClasses || []),
@@ -77,13 +75,6 @@ export const fieldMany2ManyTagsBanks = {
7775
{ name: options.allow_out_payment_field, type: "boolean", readonly: false },
7876
];
7977
},
80-
extractProps({ attrs, options, string }, dynamicInfo) {
81-
const noSearchMore = Boolean(options.no_search_more);
82-
return {
83-
...many2ManyTagsFieldColorEditable.extractProps({ attrs, options, string }, dynamicInfo),
84-
noSearchMore,
85-
};
86-
},
8778
};
8879

8980
registry.category("fields").add("many2many_tags_banks", fieldMany2ManyTagsBanks);

addons/account/views/partner_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<page string="Invoicing" name="accounting" invisible="not is_company and parent_id" groups="account.group_account_invoice,account.group_account_readonly">
213213
<group>
214214
<group string="General" name="general" groups="account.group_account_invoice,account.group_account_readonly">
215-
<field name="bank_ids" context="{'default_partner_id': id}" domain="[('partner_id','=', id)]" widget="many2many_tags_banks" options="{'color_field': 'color', 'allow_out_payment_field': 'allow_out_payment', 'edit_tags': True, 'no_search_more': True}"/>
215+
<field name="bank_ids" context="{'default_partner_id': id}" domain="[('partner_id','=', id)]" widget="many2many_tags_banks" options="{'color_field': 'color', 'allow_out_payment_field': 'allow_out_payment', 'edit_tags': True}"/>
216216
<field name="property_account_receivable_id" required="True"/>
217217
<field name="property_account_payable_id" required="True"/>
218218
<field name="autopost_bills" groups="account.group_account_invoice,account.group_account_readonly"/>

0 commit comments

Comments
 (0)