Skip to content

Commit

Permalink
TA#24579 add module show_project_perdiem (#122)
Browse files Browse the repository at this point in the history
* TA#24579 add module show_project_perdiem
  • Loading branch information
ddufresne authored Oct 20, 2021
1 parent 039e0fc commit 848c9c4
Show file tree
Hide file tree
Showing 33 changed files with 971 additions and 2 deletions.
5 changes: 5 additions & 0 deletions gitoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
- base_extended_security
- url_link_type

- url: https://github.com/Numigi/odoo-partner-addons
branch: "12.0"
includes:
- partner_contact_type_visible

- url: https://github.com/Numigi/odoo-project-addons
branch: "12.0"
includes:
Expand Down
6 changes: 5 additions & 1 deletion show_place/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"license": "LGPL-3",
"category": "Entertainment",
"summary": "Add Show Place Types/Configuration",
"depends": ["contacts", "sales_team"],
"depends": [
"contacts",
"partner_contact_type_visible",
"sales_team",
],
"data": [
"security/ir.model.access.csv",
"views/res_partner.xml",
Expand Down
62 changes: 62 additions & 0 deletions show_project_perdiem/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
Show Project Per Diem
=====================
This module allows to define ``Per Diem`` on shows.

Configuration
-------------
As ``Project / Manager``, under ``Project / Configuration / Per Diem Types``,
I find the list of per diem types.

.. image:: static/description/perdiem_type_list.png

.. image:: static/description/perdiem_type_form.png

Tour Configuration
------------------
As ``Project / Manager``, I go to a project of type ``Tour``.

I notice a new tab ``Per Diem`` containing a table.

.. image:: static/description/tour_form.png

This table allows to define unit amounts to pay for a given type of per diem.

..
It is not possible to define multiple lines with the same per diem type.

Usage
-----
As ``Project / Manager``, I go to a project of type ``Show``.

In the tab ``Per Diem``, I notice a table ``Per Diem To Apply``.

.. image:: static/description/show_perdiem_to_apply.png

This table allows to define quantities of each type of per diem that are applicable
for this show.

..
It is not possible to define multiple lines with the same per diem type.

I click on the button ``Compute Per Diem To Pay``.

.. image:: static/description/show_perdiem_button.png

The table below is filled with lines of per diem to pay, based on the quantities
defined on the show and the unit amounts defined on the tour.

.. image:: static/description/show_perdiem_computed.png

Each per diem is applicable for every member of the show.

.. image:: static/description/show_members.png

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)

More information
----------------
* Meet us at https://bit.ly/numigi-com
4 changes: 4 additions & 0 deletions show_project_perdiem/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# © 2021 - today Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
26 changes: 26 additions & 0 deletions show_project_perdiem/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# © 2021 - today Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Show Project Per Diem",
"summary": "Add perdiems on shows",
"version": "1.0.0",
"website": "https://bit.ly/numigi-com",
"author": "Numigi",
"maintainer": "Numigi",
"license": "AGPL-3",
"installable": True,
"depends": [
"show_project",
"show_project_role",
],
"data": [
"security/ir.model.access.csv",
"views/project_perdiem_type.xml",
"views/project_project.xml",
"views/menu.xml",
],
"demo": [
"demo/project.perdiem.type.csv",
],
}
4 changes: 4 additions & 0 deletions show_project_perdiem/demo/project.perdiem.type.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
id,name
perdiem_type_breakfast,Breakfast
perdiem_type_lunch,Lunch
perdiem_type_supper,Supper
Loading

0 comments on commit 848c9c4

Please sign in to comment.