Skip to content

Commit

Permalink
Merge PR #521 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by robinkeunen
  • Loading branch information
github-grap-bot committed Oct 24, 2023
2 parents 4803b52 + d8fc3f3 commit 80eadce
Show file tree
Hide file tree
Showing 21 changed files with 1,109 additions and 0 deletions.
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

0 comments on commit 80eadce

Please sign in to comment.