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

[13.0] [mig] pos_loyalty #623

Closed
wants to merge 14 commits into from
Closed

Conversation

dsolanki-initos
Copy link
Contributor

No description provided.

@dsolanki-initos dsolanki-initos force-pushed the 13.0-mig-pos_loyalty branch 3 times, most recently from 5706a17 to 16e1c1f Compare April 16, 2021 08:43
@chienandalu chienandalu mentioned this pull request Apr 16, 2021
15 tasks
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Check pre-commit errors

@dsolanki-initos
Copy link
Contributor Author

Pre-commit fails due to errors in tests.

@dsolanki-initos
Copy link
Contributor Author

It would be great if we get the reviews here

@@ -11,10 +11,11 @@
type="action"
name="%(point_of_sale.action_pos_pos_form)d"
context="{'search_default_partner_id': active_id,'default_partner_id': active_id}"
attrs="{'invisible': ['|', ('customer', '=', False), ('pos_order_count', '=', 0)]}"
attrs="{'invisible': ['|', ('customer_rank', '=', False), ('pos_order_count', '=', 0)]}"
Copy link
Contributor

@rousseldenis rousseldenis May 28, 2021

Choose a reason for hiding this comment

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

@dsolanki-initos customer_rank is a Float

@ivantodorovich
Copy link
Contributor

It seems pre-commit is still failing here

@dsolanki-initos
Copy link
Contributor Author

Yes but it is due to test case

// Copyright 2004-2018 Odoo SA
// Copyright 2018 Lambda IS DOOEL <https://www.lambda-is.com>
// License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

Copy link
Contributor

@ivantodorovich ivantodorovich Jul 23, 2021

Choose a reason for hiding this comment

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

Suggested change
/* eslint-disable no-empty-function init-declarations */

To make pre-commit happy:

/home/travis/build/OCA/pos/pos_loyalty/static/src/js/tests.js
   33:33  error  Unexpected empty method 'run'                                 no-empty-function
   60:33  error  Unexpected empty method 'run'                                 no-empty-function
   70:33  error  Unexpected empty method 'run'                                 no-empty-function
   76:13  error  Variable 'i' should be initialized on declaration             init-declarations
   78:13  error  Variable 'current_char' should be initialized on declaration  init-declarations
  103:33  error  Unexpected empty method 'run'                                 no-empty-function
  130:33  error  Unexpected empty method 'run'                                 no-empty-function
  136:33  error  Unexpected empty method 'run'                                 no-empty-function
  149:29  error  Unexpected empty method 'run'                                 no-empty-function
  166:29  error  Unexpected empty method 'run'                                 no-empty-function
  171:29  error  Unexpected empty method 'run'                                 no-empty-function
  190:29  error  Unexpected empty method 'run'                                 no-empty-function
  202:29  error  Unexpected empty method 'run'                                 no-empty-function

@ivantodorovich
Copy link
Contributor

Test are failing and this time is not because of pre-commit, can you check it out?
I also left some comments on the 14.0 PR, check if the same have to be applied here too

@hkapatel-initos hkapatel-initos force-pushed the 13.0-mig-pos_loyalty branch 2 times, most recently from f35aa5d to 5c9dd08 Compare September 14, 2021 09:23
@hkapatel-initos
Copy link
Contributor

Test are failing and this time is not because of pre-commit, can you check it out?
I also left some comments on the 14.0 PR, check if the same have to be applied here too

I have added changes as per suggestion but Travis is not happy because of https://app.travis-ci.com/github/OCA/pos/jobs/537261353#L1196.

@ivantodorovich
Copy link
Contributor

Test are failing and this time is not because of pre-commit, can you check it out?
I also left some comments on the 14.0 PR, check if the same have to be applied here too

I have added changes as per suggestion but Travis is not happy because of https://app.travis-ci.com/github/OCA/pos/jobs/537261353#L1196.

That means the module's test tours are failing.

It's much easier to debug this locally than on travis, so I recommend you try to run the module tests locally and debug it :)

@dsolanki-initos dsolanki-initos force-pushed the 13.0-mig-pos_loyalty branch 6 times, most recently from 21abcca to e1a8262 Compare January 19, 2022 13:00
@legalsylvain legalsylvain added this to the 13.0 milestone Mar 6, 2022
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 10, 2022
* [ADD] pos_loyalty: loyalty programs for POS

* [FIX] Limit to one discount reward per order

* [FIX] Remove unused variables and returns

* [IMP] Refactoring rules loading
@dsolanki-initos
Copy link
Contributor Author

@ivantodorovich @chienandalu Could you please review?

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 14, 2022
@dsolanki-initos
Copy link
Contributor Author

@rafaelbn Can you please review this PR?

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 25, 2022
@github-actions github-actions bot closed this Jan 29, 2023
@dsolanki-initos
Copy link
Contributor Author

Maintainers team, Could you please reopen this PR?

@ivantodorovich ivantodorovich reopened this Mar 6, 2023
@ivantodorovich ivantodorovich removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 6, 2023
@github-actions
Copy link

github-actions bot commented Jul 9, 2023

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 9, 2023
@ivantodorovich ivantodorovich removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 10, 2023
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 12, 2023
@github-actions github-actions bot closed this Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.