[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user