[IMP] web: many2many_tags_field allow passing noViewAll to Many2XAutocomplete

In sign, we don't want to show the view all option when choosing sign options
for a sign item in a template. This commit adds the noViewAll prop to the
many2many_tags_field component.

task-3233643

closes odoo/odoo#122157

Related: odoo/enterprise#39787
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
This commit is contained in:
Leonardo Pavan Rocha
2023-07-11 18:03:10 +02:00
parent b553163b4e
commit 79d4a829e5
2 changed files with 2 additions and 0 deletions
@@ -44,6 +44,7 @@ export class Many2ManyTagsField extends Component {
placeholder: { type: String, optional: true },
nameCreateField: { type: String, optional: true },
string: { type: String, optional: true },
noViewAll: { type: Boolean, optional: true },
};
static defaultProps = {
canCreate: true,
@@ -21,6 +21,7 @@
getDomain.bind="getDomain"
isToMany="true"
nameCreateField="props.nameCreateField"
noViewAll="props.noViewAll"
/>
</div>
</div>