-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] membership_pricelist_assignment
- Loading branch information
1 parent
be9185e
commit 5350b40
Showing
20 changed files
with
1,154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
=============================== | ||
Membership Pricelist Assignment | ||
=============================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:f56e84f0f7f7d4903733f08ac76cd4d25000a18e0dd7eadca4598074d83499f1 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fvertical--association-lightgray.png?logo=github | ||
:target: https://github.com/OCA/vertical-association/tree/16.0/membership_pricelist_assignment | ||
:alt: OCA/vertical-association | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/vertical-association-16-0/vertical-association-16-0-membership_pricelist_assignment | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/vertical-association&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module lets you associate a price list with a member. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
The default price list is configured in your Odoo application settings. | ||
Settings -> Memberships -> Default Price List | ||
|
||
Usage | ||
===== | ||
|
||
Once a membership has been completed, the member's price list reverts to the default list. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/vertical-association/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/vertical-association/issues/new?body=module:%20membership_pricelist_assignment%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Moka | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Horvat Damien <[email protected]> | ||
* Duciel Romain <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/vertical-association <https://github.com/OCA/vertical-association/tree/16.0/membership_pricelist_assignment>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2024 Moka Tourisme (https://www.mokatourisme.fr/). | ||
# @author Damien Horvat <[email protected]> | ||
# @author Romain Duciel <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Membership Pricelist Assignment", | ||
"version": "16.0.1.0.1", | ||
"category": "Membership", | ||
"author": "Moka, Odoo Community Association (OCA)", | ||
"summary": "Membership Pricelist Assignment", | ||
"depends": ["membership", "base_setup"], | ||
"installable": True, | ||
"auto_install": False, | ||
"license": "AGPL-3", | ||
"data": [ | ||
"views/res_config_settings_views.xml", | ||
"views/product_views.xml", | ||
"views/membership_views.xml", | ||
"data/membership_data.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
Copyright 2024 Moka Tourisme (https://www.mokatourisme.fr/). | ||
@author Damien Horvat <[email protected]> | ||
@author Romain Duciel <[email protected]> | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
--> | ||
<odoo> | ||
<record id="ir_cron_update_membership_pricelist" model="ir.cron"> | ||
<field name="name">Membership: update membership lines pricelist</field> | ||
<field name="model_id" ref="membership.model_membership_membership_line" /> | ||
<field name="state">code</field> | ||
<field name="code">model._cron_update_membership_lines_pricelist()</field> | ||
<field name="interval_type">days</field> | ||
<field name="interval_number">1</field> | ||
<field name="numbercall">-1</field> | ||
<field | ||
name="nextcall" | ||
eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 00:00:00')" | ||
/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * membership_pricelist_assignment | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-04-10 07:25+0000\n" | ||
"PO-Revision-Date: 2024-04-10 07:25+0000\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model_terms:ir.ui.view,arch_db:membership_pricelist_assignment.res_config_settings_view_membership_form | ||
msgid "<span class=\"o_form_label\">Membership Pricelist</span>" | ||
msgstr "<span class=\"o_form_label\">Liste de prix Adhésion</span>" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model.fields,field_description:membership_pricelist_assignment.field_product_product__pricelist_id | ||
#: model:ir.model.fields,field_description:membership_pricelist_assignment.field_product_template__pricelist_id | ||
#: model:ir.model.fields,field_description:membership_pricelist_assignment.field_res_partner__existing_pricelist_id | ||
#: model:ir.model.fields,field_description:membership_pricelist_assignment.field_res_users__existing_pricelist_id | ||
msgid "Associated Pricelist" | ||
msgstr "" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model_terms:ir.ui.view,arch_db:membership_pricelist_assignment.membership_products_form_inherit | ||
msgid "Associated pricelist" | ||
msgstr "" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model,name:membership_pricelist_assignment.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "Paramètres de config" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model,name:membership_pricelist_assignment.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model_terms:ir.ui.view,arch_db:membership_pricelist_assignment.res_config_settings_view_membership_form | ||
msgid "Membership" | ||
msgstr "Adhésion" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model,name:membership_pricelist_assignment.model_membership_membership_line | ||
msgid "Membership Line" | ||
msgstr "Ligne d'adhésion" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model_terms:ir.ui.view,arch_db:membership_pricelist_assignment.res_config_settings_view_membership_form | ||
msgid "Membership Pricelist" | ||
msgstr "Liste de prix d'adhésion" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.actions.act_window,name:membership_pricelist_assignment.membership_config_settings_action | ||
#: model:ir.ui.menu,name:membership_pricelist_assignment.membership_menu_configuration | ||
#: model_terms:ir.ui.view,arch_db:membership_pricelist_assignment.res_config_settings_view_membership_form | ||
msgid "Membership Settings" | ||
msgstr "Paramètres Adhésion" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.actions.server,name:membership_pricelist_assignment.ir_cron_update_membership_pricelist_ir_actions_server | ||
#: model:ir.cron,cron_name:membership_pricelist_assignment.ir_cron_update_membership_pricelist | ||
#: model:ir.cron,name:membership_pricelist_assignment.ir_cron_update_membership_pricelist | ||
msgid "Membership: update membership lines pricelist" | ||
msgstr "Adhésion : Maj des lignes de listes de prix" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model_terms:ir.ui.view,arch_db:membership_pricelist_assignment.membership_res_partner_form_inherit | ||
msgid "Memberships" | ||
msgstr "Adhésions" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model.fields,field_description:membership_pricelist_assignment.field_membership_membership_line__pricelist_id | ||
#: model:ir.model.fields,field_description:membership_pricelist_assignment.field_res_config_settings__default_pricelist_id | ||
msgid "Pricelist" | ||
msgstr "" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model.fields,help:membership_pricelist_assignment.field_product_product__pricelist_id | ||
#: model:ir.model.fields,help:membership_pricelist_assignment.field_product_template__pricelist_id | ||
#: model:ir.model.fields,help:membership_pricelist_assignment.field_res_partner__existing_pricelist_id | ||
#: model:ir.model.fields,help:membership_pricelist_assignment.field_res_users__existing_pricelist_id | ||
msgid "Pricelist to add to the member" | ||
msgstr "" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model.fields,field_description:membership_pricelist_assignment.field_product_product__product_hierarchy | ||
#: model:ir.model.fields,field_description:membership_pricelist_assignment.field_product_template__product_hierarchy | ||
msgid "Product Hierarchy" | ||
msgstr "" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model,name:membership_pricelist_assignment.model_product_template | ||
msgid "Product Template" | ||
msgstr "Modèle d'article" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model.fields,help:membership_pricelist_assignment.field_product_product__product_hierarchy | ||
#: model:ir.model.fields,help:membership_pricelist_assignment.field_product_template__product_hierarchy | ||
msgid "" | ||
"Products that will not be considered because current product is better." | ||
msgstr "" | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model.fields,help:membership_pricelist_assignment.field_res_config_settings__default_pricelist_id | ||
msgid "The default pricelist to be used for membership." | ||
msgstr "Liste de prix par défaut à utiliser pour l'adhésion." | ||
|
||
#. module: membership_pricelist_assignment | ||
#: model:ir.model.fields,field_description:membership_pricelist_assignment.field_membership_membership_line__user_id | ||
msgid "Users" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from . import product | ||
from . import partner | ||
from . import membership | ||
from . import res_config_settings |
Oops, something went wrong.