Skip to content
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

[14.0] [mig] pos_reset_search #651

Merged
merged 17 commits into from
Sep 3, 2021
Merged

Conversation

dsolanki-initos
Copy link
Contributor

No description provided.

@dsolanki-initos dsolanki-initos mentioned this pull request May 25, 2021
16 tasks
@dsolanki-initos
Copy link
Contributor Author

It would be great if we get the reviews here

@dsolanki-initos
Copy link
Contributor Author

@flotho It would be great if you could add the reviews

@dsolanki-initos
Copy link
Contributor Author

It would be great if we could get the reviews here

2 similar comments
@dsolanki-initos
Copy link
Contributor Author

It would be great if we could get the reviews here

@dsolanki-initos
Copy link
Contributor Author

It would be great if we could get the reviews here

@dsolanki-initos
Copy link
Contributor Author

Hi @Fkawala It would be nice if you can review this PR

@Fkawala
Copy link
Contributor

Fkawala commented Jul 1, 2021

@dsolanki-initos sure will do that ASAP (probably tomorrow)

@dsolanki-initos
Copy link
Contributor Author

Hi @ivantodorovich It would be nice if you can review the PR

@@ -1,12 +1,39 @@
odoo.define("product_click_search_reset", function (require) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
odoo.define("product_click_search_reset", function (require) {
odoo.define("pos_reset_search.ProductScreen", function (require) {

Also rename file to ProductScreen.js please

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one's still pending :)

We can merge after this is AFAICS

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one's still pending @dsolanki-initos

const ProductsWidgetControlPanel = _.find(
ProductWidgetChildrens,
function (children) {
if (children.el.className === "products-widget-control") {
return children;
}
}
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const ProductsWidgetControlPanel = _.find(
ProductWidgetChildrens,
function (children) {
if (children.el.className === "products-widget-control") {
return children;
}
}
);
const ProductsWidgetControlPanel = ProductWidgetChildren.find(
child => child.el.className === "products-widget-control"
);

Also "children" is already plural (of "child"), so you can remove the "s"
Please note there are other occurrences like this one

Comment on lines 11 to 17
const ProductWidget = _.find(ProductScreenChildrens, function (
children
) {
if (children.el.className === "products-widget") {
return children;
}
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const ProductWidget = _.find(ProductScreenChildrens, function (
children
) {
if (children.el.className === "products-widget") {
return children;
}
});
const ProductWidget = ProductScreenChildren.find(
child => child.el.className === "products-widget"
);

const PosProductScreen = (ProductScreen) =>
class extends ProductScreen {
async _clickProduct(event) {
const ProductScreenChildrens = this.__owl__.children;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so familiar with owl yet to know if this is ok, but I trust you here :)

Comment on lines 1 to 3
- Le Nid
- CoopITEasy

* Dhara Solanki <dhara.solanki@initos.com>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Le Nid
- CoopITEasy
* Dhara Solanki <dhara.solanki@initos.com>
* Le Nid
* CoopITEasy
* Dhara Solanki <dhara.solanki@initos.com>

Would you please normalize this too?

@dsolanki-initos dsolanki-initos force-pushed the 14.0-mig-pos_reset_search branch 3 times, most recently from 0aab88c to f497aa4 Compare July 23, 2021 05:51
Copy link
Contributor

@fshah-initos fshah-initos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGM. Code review and Functional tests.

Copy link
Contributor

@fshah-initos fshah-initos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dsolanki-initos
Copy link
Contributor Author

Hello, @ivantodorovich Changes are done can you please re-review it?

@hkapatel-initos
Copy link
Contributor

Hello, @ivantodorovich Changes are done can you please re-review it?

@ivantodorovich
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-651-by-ivantodorovich-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Aug 27, 2021
Signed-off-by ivantodorovich
@hkapatel-initos
Copy link
Contributor

Hi, @ivantodorovich can we try to merge this again?

@ivantodorovich
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 14.0-ocabot-merge-pr-651-by-ivantodorovich-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 59865a1 into OCA:14.0 Sep 3, 2021
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 61edc0a. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants