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

[16.0] [MIG] eater #521

Merged
merged 35 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e7765df
[REF] split beesdoo_base -> member_card
victor-champonnois Jul 18, 2022
2ffa9dc
[REF] split beesdoo_base -> eater
victor-champonnois Jul 18, 2022
9be273c
[REF] split beesdoo_base -> eater_member_card
victor-champonnois Jul 18, 2022
2fea183
[REF] split beesdoo_base : fix dependencies
victor-champonnois Jul 18, 2022
9b6a991
[REM] deprecated functionalities
victor-champonnois Jul 18, 2022
014d1b0
[REF] beesdoo_base: remove view renames
robinkeunen Aug 5, 2022
44c1754
[REF] eater: rename eater.new.wizard
robinkeunen Aug 10, 2022
e93d0f8
[REF] eater: dependencies to point_of_sale, purchase
robinkeunen Aug 10, 2022
735d26e
[REF] member_card: rename membercard.new.wizard
robinkeunen Aug 10, 2022
acc3843
[IMP] generate POT and PO files
robinkeunen Aug 16, 2022
716901b
[IMP] update french translations
robinkeunen Aug 16, 2022
c92f781
[UPD] README.rst
github-grap-bot Aug 17, 2022
dc7749a
[IMP] translations
robinkeunen Aug 30, 2022
133c69c
[FIX] fix fr translation
huguesdk Sep 9, 2022
ffe7d21
[REF] split beesdoo_product
victor-champonnois May 19, 2022
268c906
[UPD] README.rst
github-grap-bot Oct 30, 2022
6db1210
[FIX] eater: Add restraints on parent and child eaters
carmenbianca Jun 1, 2023
a71ad8c
[FIX] eater: Migration script
carmenbianca Jun 1, 2023
9773db6
[IMP] eater: Set customer=True for child and parent eaters
carmenbianca Jun 29, 2023
6398b4c
[REF] eater: Undo changes to customer
carmenbianca Sep 6, 2023
7937ba7
[UPD] Update eater.pot
Oct 9, 2023
95d41fa
eater 12.0.2.1.0
github-grap-bot Oct 9, 2023
3651d78
[MIG] eater: Migration to 13.0
victor-champonnois Aug 3, 2023
edb70be
[MIG] eater: Migration to 14.0
victor-champonnois Aug 3, 2023
779c7d7
[MIG] eater: Migration to 15.0
victor-champonnois Aug 3, 2023
38848db
[MIG] eater: Migration to 16.0
victor-champonnois Aug 3, 2023
4ab1799
[FIX] eater: condition on parent_eater_id
victor-champonnois Aug 3, 2023
542c883
[ADD] suggestion to improve performance
victor-champonnois Aug 3, 2023
9c0e431
[ADD] improve comment and propose removal
victor-champonnois Aug 3, 2023
5112427
[ADD] eater: tests
victor-champonnois Aug 3, 2023
f6b7e67
[IMP] perf imp: check for parent eater before loop
victor-champonnois Sep 7, 2023
3356eb9
[REM] no-delete on child_eater_ids many2many
victor-champonnois Sep 7, 2023
9cce452
[FIX] eater: Improve English, fix check
carmenbianca Oct 9, 2023
aedd3bd
[IMP] eater: do not display tab if partner not eater/worker
robinkeunen Oct 24, 2023
d8fc3f3
[REF] eater: do not raise validation error on parent worker update
robinkeunen Oct 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions eater/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
=====
Eater
=====

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-beescoop%2FObeesdoo-lightgray.png?logo=github
:target: https://github.com/beescoop/Obeesdoo/tree/12.0/eater
:alt: beescoop/Obeesdoo

|badge1| |badge2| |badge3|

This module adds the "eater" and "worker" concepts to partners of your participative shop.

- the worker is a voluntary worker of your supermarket
- the eater, linked to a worker, is usually given the same access rights as the worker

The eater tab is displayed for worker partner.
A button in this tab allows to create and link an eater to a partner.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/beescoop/Obeesdoo/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/beescoop/Obeesdoo/issues/new?body=module:%20eater%0Aversion:%2012.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
~~~~~~~

* BEES coop - Cellule IT
* Coop IT Easy SC

Contributors
~~~~~~~~~~~~

* BEES coop - Cellule IT
* Coop IT Easy SC

Maintainers
~~~~~~~~~~~

This module is part of the `beescoop/Obeesdoo <https://github.com/beescoop/Obeesdoo/tree/12.0/eater>`_ project on GitHub.

You are welcome to contribute.
2 changes: 2 additions & 0 deletions eater/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
24 changes: 24 additions & 0 deletions eater/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2017 - 2020 BEES coop SCRLfs
# - Robin Keunen <robin@coopiteasy.be>
# - Houssine bakkali <houssine@coopiteasy.be>
# - Rémy Taymans <remy@coopiteasy.be>
# - Elise Dupont
# - Thibault François
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Eater",
"summary": "Add eaters to the workers of your structure.",
"author": "BEES coop - Cellule IT, Coop IT Easy SC",
"website": "https://github.com/beescoop/Obeesdoo",
"category": "Sales",
"version": "16.0.1.0.0",
"depends": ["base", "partner_firstname"],
"data": [
"wizard/new_eater_wizard_views.xml",
"views/partner.xml",
"security/ir.model.access.csv",
],
"installable": True,
"demo": ["demo/eaters.xml"],
"license": "AGPL-3",
}
35 changes: 35 additions & 0 deletions eater/demo/eaters.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2019 Coop IT Easy
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="base.res_partner_address_1" model="res.partner">
<field name="eater">worker_eater</field>
</record>

<record id="base.res_partner_address_2" model="res.partner">
<field name="eater">worker_eater</field>
</record>

<record id="base.res_partner_address_3" model="res.partner">
<field name="eater">eater</field>
<field name="parent_eater_id" ref="base.res_partner_address_1" />
</record>

<record id="base.res_partner_address_4" model="res.partner">
<field name="eater">eater</field>
<field name="parent_eater_id" ref="base.res_partner_address_1" />
</record>

<record id="base.res_partner_address_5" model="res.partner">
<field name="eater">eater</field>
<field name="parent_eater_id" ref="base.res_partner_address_2" />

</record>

<record id="base.res_partner_address_7" model="res.partner">
<field name="eater">eater</field>
<field name="parent_eater_id" ref="base.res_partner_address_2" />
</record>
</odoo>
152 changes: 152 additions & 0 deletions eater/i18n/eater.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * eater
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \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: eater
#: code:addons/eater/models/partner.py:44
#, python-format
msgid "%s cannot have a parent worker because they are themselves a worker."
msgstr ""

#. module: eater
#: model:ir.model,name:eater.model_new_eater_wizard
msgid "Add an eater to the current partner"
msgstr ""

#. module: eater
#: model_terms:ir.ui.view,arch_db:eater.new_eater_wizard_view_form
msgid "Cancel"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_res_partner__child_eater_ids
#: model:ir.model.fields,field_description:eater.field_res_users__child_eater_ids
msgid "Child Eater"
msgstr ""

#. module: eater
#: model:ir.model,name:eater.model_res_partner
msgid "Contact"
msgstr ""

#. module: eater
#: model_terms:ir.ui.view,arch_db:eater.new_eater_wizard_view_form
msgid "Create"
msgstr ""

#. module: eater
#: model_terms:ir.ui.view,arch_db:eater.new_eater_wizard_view_form
msgid "Create a new eater"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__create_uid
msgid "Created by"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__create_date
msgid "Created on"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__display_name
msgid "Display Name"
msgstr ""

#. module: eater
#: selection:res.partner,eater:0
msgid "Eater"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_res_partner__eater
#: model:ir.model.fields,field_description:eater.field_res_users__eater
msgid "Eater/Worker"
msgstr ""

#. module: eater
#: model_terms:ir.ui.view,arch_db:eater.res_partner_form_view
msgid "Eaters"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__email
msgid "Email"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__first_name
msgid "First Name"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__id
msgid "ID"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard____last_update
msgid "Last Modified on"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__last_name
msgid "Last Name"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__write_uid
msgid "Last Updated by"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__write_date
msgid "Last Updated on"
msgstr ""

#. module: eater
#: model:ir.actions.act_window,name:eater.new_eater_wizard_action
#: model_terms:ir.ui.view,arch_db:eater.res_partner_form_view
msgid "New Eater"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_res_partner__parent_eater_id
#: model:ir.model.fields,field_description:eater.field_res_users__parent_eater_id
msgid "Parent Worker"
msgstr ""

#. module: eater
#: model:ir.model.fields,field_description:eater.field_new_eater_wizard__partner_id
msgid "Partner"
msgstr ""

#. module: eater
#: selection:res.partner,eater:0
msgid "Worker and Eater"
msgstr ""

#. module: eater
#: code:addons/eater/models/partner.py:60
#, python-format
msgid "You try to assign a eater to a partner but this eater is already assign to %s please remove it before "
msgstr ""

#. module: eater
#: code:addons/eater/models/partner.py:37
#, python-format
msgid "{0} cannot be the parent of {1} because the parent must be a worker."
msgstr ""

Loading
Loading