Skip to content

[16.0][MIG] membership_variable_period#133

Merged
OCA-git-bot merged 22 commits intoOCA:16.0from
coopiteasy:16.0-mig-membership_variable_period
Jan 17, 2023
Merged

[16.0][MIG] membership_variable_period#133
OCA-git-bot merged 22 commits intoOCA:16.0from
coopiteasy:16.0-mig-membership_variable_period

Conversation

@carmenbianca
Copy link
Copy Markdown
Member

@carmenbianca carmenbianca commented Oct 10, 2022

Migrated from v14.0. Tagging @flachica from #130

Ping @robinkeunen @PierrickBrun

@carmenbianca carmenbianca force-pushed the 16.0-mig-membership_variable_period branch from 4b5ed70 to d5aa360 Compare October 10, 2022 10:58
@rafaelbn
Copy link
Copy Markdown
Member

/ocabot rebase

@OCA-git-bot
Copy link
Copy Markdown
Contributor

@rafaelbn The rebase process failed, because command git push --force coopiteasy tmp-pr-133:16.0-mig-membership_variable_period failed with output:

remote: Permission to coopiteasy/vertical-association.git denied to OCA-git-bot.
fatal: unable to access 'https://github.com/coopiteasy/vertical-association/': The requested URL returned error: 403

@rafaelbn
Copy link
Copy Markdown
Member

/ocabot migration membership_variable_period

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Dec 20, 2022
@OCA-git-bot OCA-git-bot mentioned this pull request Dec 20, 2022
11 tasks
@carmenbianca carmenbianca force-pushed the 16.0-mig-membership_variable_period branch from d5aa360 to d370881 Compare December 20, 2022 15:59
@rafaelbn rafaelbn closed this Dec 20, 2022
@rafaelbn rafaelbn reopened this Dec 20, 2022
@carmenbianca
Copy link
Copy Markdown
Member Author

@rafaelbn rebased

@rafaelbn
Copy link
Copy Markdown
Member

Runboat log

+ bash /runboat/runboat-clone-and-install.sh
+ rm -fr '/mnt/data/*'
+ rm -fr /mnt/data/odoo-addons-dir
+ mkdir -p /mnt/data/odoo-addons-dir
+ cd /mnt/data/odoo-addons-dir
+ curl -sSL https://github.com/oca/vertical-association/tarball/d370881ab90cf5e0195d38e27df3f34a440e9d30
+ tar zxf - --strip-components=1
+ INSTALL_METHOD=oca_install_addons
+ [[ oca_install_addons == \o\c\a\_\i\n\s\t\a\l\l\_\a\d\d\o\n\s ]]
+ oca_install_addons
+ setuptools-odoo-get-requirements --include-addons --addons-dir /mnt/data/odoo-addons-dir
/root/.local/pipx/shared/lib/python3.8/site-packages/_distutils_hack/__init__.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
  warnings.warn(
/root/.local/pipx/shared/lib/python3.8/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
+ cat test-requirements.txt
odoo-addon-membership_extension>=16.0dev,<16.1dev
odoo>=16.0a,<16.1dev
+ pip install -r test-requirements.txt
Looking in indexes: https://wheelhouse.odoo-community.org/oca-simple-and-pypi
ERROR: Could not find a version that satisfies the requirement odoo-addon-membership_extension<16.1dev,>=16.0dev (from versions: 15.0.1.0.0.3)
ERROR: No matching distribution found for odoo-addon-membership_extension<16.1dev,>=16.0dev

@rafaelbn
Copy link
Copy Markdown
Member

Hello @sbidoul , could you please give us a clue to solve this runboat log? #133 (comment) @yajo do you have any idea? Thank you!

@sbidoul
Copy link
Copy Markdown
Member

sbidoul commented Dec 20, 2022

@rafaelbn membership_extension is not merged, hence not available for installation.

@fcvalgar
Copy link
Copy Markdown

@carmenbianca can you rebase? please.

@rafaelbn
Copy link
Copy Markdown
Member

/ocabot rebase

@OCA-git-bot
Copy link
Copy Markdown
Contributor

@rafaelbn The rebase process failed, because command git push --force coopiteasy tmp-pr-133:16.0-mig-membership_variable_period failed with output:

remote: Permission to coopiteasy/vertical-association.git denied to OCA-git-bot.
fatal: unable to access 'https://github.com/coopiteasy/vertical-association/': The requested URL returned error: 403

pedrobaeza and others added 9 commits December 23, 2022 09:08
Variable period for memberships
===============================

Current membership module allows to set products that define a fixed period
for a membership. This is good when the quotas are defined periodically, and
when you become a member, you are until the end of that quota cycle.

But a lot of times, membership quotas express an amount of time that you
gain the membership. For example, one year since the subscription.

This module allows to make it in Odoo, using current membership features,
and adapting them for this purpose. As now the quota is not attached to a fixed
period, you can also invoice more than one quantity for being a member for
the corresponding number of periods.

Finally, a cron has been included that triggers the recalculation of the
membership state, allowing to have "old members", which doesn't work well
on standard.

Usage
=====

Define a member product, and select 'Variable periods' in the field
*Membership type*. You will be able to select them the period for the
membership in quantity and interval.

Signed-off-by: Carmen Bianca Bakker <[email protected]>
Signed-off-by: Carmen Bianca Bakker <[email protected]>
Signed-off-by: Carmen Bianca Bakker <[email protected]>
Rodrigo Macedo and others added 7 commits December 23, 2022 09:08
Currently translated at 100.0% (12 of 12 strings)

Translation: vertical-association-12.0/vertical-association-12.0-membership_variable_period
Translate-URL: https://translation.odoo-community.org/projects/vertical-association-12-0/vertical-association-12-0-membership_variable_period/pt_BR/
Signed-off-by: Carmen Bianca Bakker <[email protected]>
Signed-off-by: Carmen Bianca Bakker <[email protected]>
Signed-off-by: Carmen Bianca Bakker <[email protected]>
Signed-off-by: Carmen Bianca Bakker <[email protected]>

[UPD] Update membership_variable_period.pot

Signed-off-by: Carmen Bianca Bakker <[email protected]>

[UPD] README.rst

Signed-off-by: Carmen Bianca Bakker <[email protected]>
Signed-off-by: Carmen Bianca Bakker <[email protected]>

[UPD] Update membership_variable_period.pot

Signed-off-by: Carmen Bianca Bakker <[email protected]>

[UPD] README.rst

Signed-off-by: Carmen Bianca Bakker <[email protected]>
@carmenbianca carmenbianca force-pushed the 16.0-mig-membership_variable_period branch from d370881 to 09df6dc Compare December 23, 2022 08:08
@carmenbianca
Copy link
Copy Markdown
Member Author

@rafaelbn Done.

Do you know which button I need to press to make sure that the ocabot rebase command works in the future?

@sbidoul
Copy link
Copy Markdown
Member

sbidoul commented Dec 23, 2022

Do you know which button I need to press to make sure that the ocabot rebase command works in the future?

I don't think there is one if the source branch belongs to an organization fork as opposed to a personal account.

@pedrobaeza
Copy link
Copy Markdown
Member

Yes, it's a problem/undesired feature of GitHub, that doesn't allow maintainers to push to organization branches. Last time I checked, they don't want to change this behavior.

@carmenbianca
Copy link
Copy Markdown
Member Author

That's a pity :( Thank you for your swift answers @sbidoul @pedrobaeza

I'll add a low-priority discussion item about this for our next internal meeting.

Copy link
Copy Markdown

@fcvalgar fcvalgar left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @carmenbianca

@fcvalgar
Copy link
Copy Markdown

fcvalgar commented Jan 2, 2023

internal @moduon MT-1834

@chienandalu
Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-133-by-chienandalu-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jan 17, 2023
Signed-off-by chienandalu
@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot
Copy link
Copy Markdown
Contributor

It looks like something changed on 16.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 16.0-ocabot-merge-pr-133-by-chienandalu-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 3084b30 into OCA:16.0 Jan 17, 2023
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@rafaelbn
Copy link
Copy Markdown
Member

/ocabot migration membership_variable_period

@OCA-git-bot
Copy link
Copy Markdown
Contributor

The migration issue (#131) has not been updated to reference the current pull request because a previous pull request (#205) is not closed.
Perhaps you should check that there is no duplicate work.
CC @flaenen

@rafaelbn
Copy link
Copy Markdown
Member

/ocabot migration membership_variable_period

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.