Skip to content

Commit

Permalink
[MIG][18.0] web_m2x_options - Naming convention in JS
Browse files Browse the repository at this point in the history
  • Loading branch information
bud-e committed Oct 16, 2024
1 parent a4aadd3 commit 71a2df5
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions web_m2x_options/static/src/components/form.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Many2ManyTagsAvatarField.props = {
};

patch(many2OneField, {
m2o_options_props_create(props, attrs, options) {
m2oOptionsPropsCreate(props, attrs, options) {
const ir_options = session.web_m2x_options;
if (options.create === false) {
props.canQuickCreate = false;
Expand All @@ -88,7 +88,7 @@ patch(many2OneField, {
return props;
},

m2o_options_props_create_edit(props, attrs, options) {
m2oOptionsPropsCreateEdit(props, attrs, options) {
const ir_options = session.web_m2x_options;
if (options.create_edit === false) {
props.canCreateEdit = false;
Expand All @@ -114,7 +114,7 @@ patch(many2OneField, {
return props;
},

m2o_options_props_limit(props, attrs, options) {
m2oOptionsPropsLimit(props, attrs, options) {
const ir_options = session.web_m2x_options;
if (Number(options.limit)) {
props.searchLimit = Number(options.limit);
Expand All @@ -124,7 +124,7 @@ patch(many2OneField, {
return props;
},

m2o_options_props_search_more(props, attrs, options) {
m2oOptionsPropsSearchMore(props, attrs, options) {
const ir_options = session.web_m2x_options;
if (options.search_more) {
props.noSearchMore = false;
Expand All @@ -141,7 +141,7 @@ patch(many2OneField, {
return props;
},

m2o_options_props_open(props, attrs, options) {
m2oOptionsPropsOpen(props, attrs, options) {
const ir_options = session.web_m2x_options;
if (options.open) {
props.canOpen = true;
Expand All @@ -156,11 +156,11 @@ patch(many2OneField, {
},

m2o_options_props(props, attrs, options) {
props = this.m2o_options_props_create(props, attrs, options);
props = this.m2o_options_props_create_edit(props, attrs, options);
props = this.m2o_options_props_limit(props, attrs, options);
props = this.m2o_options_props_search_more(props, attrs, options);
props = this.m2o_options_props_open(props, attrs, options);
props = this.m2oOptionsPropsCreate(props, attrs, options);
props = this.m2oOptionsPropsCreateEdit(props, attrs, options);
props = this.m2oOptionsPropsLimit(props, attrs, options);
props = this.m2oOptionsPropsSearchMore(props, attrs, options);
props = this.m2oOptionsPropsOpen(props, attrs, options);
props.fieldColor = options.field_color;
props.fieldColorOptions = options.colors;
return props;
Expand Down Expand Up @@ -198,7 +198,7 @@ patch(Many2OneField.prototype, {
});

patch(many2ManyTagsField, {
m2m_options_props_create(props, attrs, options) {
m2mOptionsPropsCreate(props, attrs, options) {
const ir_options = session.web_m2x_options;
// Create option already available for m2m fields
if (!options.create) {
Expand All @@ -219,7 +219,7 @@ patch(many2ManyTagsField, {
return props;
},

m2m_options_props_create_edit(props, attrs, options) {
m2mOptionsPropsCreateEdit(props, attrs, options) {
const ir_options = session.web_m2x_options;
if (options.create_edit === false) {
props.canCreateEdit = false;
Expand All @@ -245,7 +245,7 @@ patch(many2ManyTagsField, {
return props;
},

m2m_options_props_limit(props, attrs, options) {
m2mOptionsPropsLimit(props, attrs, options) {
const ir_options = session.web_m2x_options;
if (Number(options.limit) && options.limit > 1) {
props.searchLimit = Number(options.limit) - 1;
Expand All @@ -258,7 +258,7 @@ patch(many2ManyTagsField, {
return props;
},

m2m_options_props_search_more(props, attrs, options) {
m2mOptionsPropsSearchMore(props, attrs, options) {
const ir_options = session.web_m2x_options;
if (options.search_more) {
props.noSearchMore = false;
Expand All @@ -276,10 +276,10 @@ patch(many2ManyTagsField, {
},

m2m_options_props(props, attrs, options) {
props = this.m2m_options_props_create(props, attrs, options);
props = this.m2m_options_props_create_edit(props, attrs, options);
props = this.m2m_options_props_limit(props, attrs, options);
props = this.m2m_options_props_search_more(props, attrs, options);
props = this.m2mOptionsPropsCreate(props, attrs, options);
props = this.m2mOptionsPropsCreateEdit(props, attrs, options);
props = this.m2mOptionsPropsLimit(props, attrs, options);
props = this.m2mOptionsPropsSearchMore(props, attrs, options);
props.fieldColor = options.field_color;
props.fieldColorOptions = options.colors;
return props;
Expand Down

0 comments on commit 71a2df5

Please sign in to comment.