-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98c8480
commit c648072
Showing
6 changed files
with
292 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,49 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:alt: License: AGPL-3 | ||
|
||
Odoo Verticalisation for NGO Application | ||
======================================== | ||
|
||
This application allows you to configure the Odoo Verticalization for Non | ||
Government Organizations (NGO). | ||
|
||
Installation | ||
============ | ||
|
||
To install, make sure that you have modules from the following OCA repositories | ||
available: | ||
|
||
* department (https://github.com/OCA/department/) | ||
* purchase-workflow (https://github.com/OCA/purchase-workflow) | ||
* sale-workflow (https://github.com/OCA/sale-workflow) | ||
* stock-logistics-workflow (https://github.com/OCA/stock-logistics-workflow) | ||
* stock-logistics-transport (https://github.com/OCA/stock-logistics-transport) | ||
|
||
Configuration | ||
============= | ||
|
||
To configure this module, go to Settings -> NGO and perform the required | ||
configuration. | ||
|
||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
* Alexandre Fayolle <[email protected]> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
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. | ||
|
||
To contribute to this module, please visit http://odoo-community.org. |
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,36 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Copyright 2015 Camptocamp SA | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as | ||
# published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
|
||
{"name": "Vertical NGO", | ||
"summary": "Odoo NGO Verticalization", | ||
"version": "0.1", | ||
"author": "Camptocamp,Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"category": "Purchase Management", | ||
"images": [], | ||
"website": "http://www.camptocamp.com", | ||
"depends": [], | ||
"demo": [], | ||
"data": ['view/vertical_ngo.xml', | ||
], | ||
'installable': True, | ||
"auto_install": False, | ||
"application": True | ||
} |
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 res_config |
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,83 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Copyright 2015 Camptocamp SA | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as | ||
# published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
|
||
from openerp import models, fields | ||
|
||
class ngo_config_settings(models.TransientModel): | ||
_name = 'ngo.config.settings' | ||
_inherit = 'res.config.settings' | ||
|
||
module_framework_agreement_requisition = fields.Boolean( | ||
'Create tenders to negociate a framework agreements', | ||
help="To allow your NGO to manage tenders when negociating " | ||
"framework agreements from possible suppliers." | ||
) | ||
module_framework_agreement_sourcing = fields.Boolean( | ||
'Allow to source a logistics requisition with a framework agreement', | ||
help="if your NGO has framework agreements with suppliers " | ||
"which you use to source logistics requisitions." | ||
) | ||
module_logistic_budget = fields.Boolean( | ||
'Manage budget on logistics requisitions and cost estimates', | ||
help="adds the notion of budget and budget holer on logistics " | ||
"requisitions and logistics orders." | ||
) | ||
module_logistic_order_donation = fields.Boolean( | ||
'Manage in-kind donations', | ||
help="if your NGO has to manage logistics orders which are " | ||
"in-kind donations from other partners." | ||
) | ||
module_logistic_order_multicurrency = fields.Boolean( | ||
'Manage multiple currencies for logistics orders', | ||
help="to display the amount of the logistics order " | ||
"in the company currency using the exchange rate at " | ||
"the date of the order." | ||
) | ||
module_logistic_requisition = fields.Boolean( | ||
'Manage logistics requisitions and logistics orders', | ||
help="A Logistics requisition express a need that is " | ||
"requested somewhere. It allows to manage the sourcing " | ||
"of the needs before making a cost estimate to the requestor." | ||
) | ||
module_logistic_requisition_donation = fields.Boolean( | ||
'Manage donor stock dispatches as logistics requisitions', | ||
help="to create logistics requisition to dispatch stock " | ||
"stored in your warehouse and owned by other entities." | ||
) | ||
module_logistic_requisition_multicurrency = fields.Boolean( | ||
'Manage multiple currencies for logistics requisitions', | ||
help="to display the amounts on logistics requisitions in " | ||
"company currency.\n" | ||
"The amounts are converted from requisition currency to " | ||
"company currency at rates of requisition date.") | ||
module_ngo_purchase_requisition = fields.Boolean( | ||
'Manage purchase requisitions', | ||
help="to use the updated bid selection process") | ||
module_ngo_purchase = fields.Boolean( | ||
'Manage purchases and framework agreements', | ||
help="to manage purchases with a RFQ / Bid workflow, and " | ||
"various international transport documents on your purchase orders." | ||
) | ||
module_ngo_shipment_plan = fields.Boolean( | ||
'Manage shipment plans', | ||
help="to follow the shipment of your logistics orders and manage " | ||
"transit locations." | ||
) | ||
|
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,122 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
|
||
<record id="view_ngo_configuration" model="ir.ui.view"> | ||
<field name="name">Configure NGO</field> | ||
<field name="model">ngo.config.settings</field> | ||
<field name="arch" type="xml"> | ||
<form string="Configure NGO Verticalization" | ||
class= "oe_form_configuration"> | ||
<header> | ||
<button string="Apply" | ||
type="object" | ||
name="execute" | ||
class="oe_highlight"/> | ||
or | ||
<button string="Cancel" | ||
type="object" | ||
name="cancel" | ||
class="oe_link"/> | ||
</header> | ||
<separator string="Logistics Requisitions"/> | ||
<group> | ||
<label for="id" string="Features"/> | ||
<div> | ||
<div> | ||
<field name="module_logistic_requisition" | ||
class="oe_inline"/> | ||
<label for="module_logistic_requisition"/> | ||
</div> | ||
|
||
<div attrs="{'invisible': [('module_logistic_requisition','=',False)]}"> | ||
<field name="module_logistic_budget" | ||
class="oe_inline"/> | ||
<label for="module_logistic_budget"/> | ||
</div> | ||
<div attrs="{'invisible': [('module_logistic_requisition','=',False)]}"> | ||
<field name="module_logistic_order_donation" | ||
class="oe_inline"/> | ||
<label for="module_logistic_order_donation"/> | ||
</div> | ||
<div attrs="{'invisible': [('module_logistic_requisition','=',False)]}"> | ||
<field name="module_logistic_requisition_donation" | ||
class="oe_inline"/> | ||
<label for="module_logistic_requisition_donation"/> | ||
</div> | ||
<div attrs="{'invisible': [('module_logistic_requisition','=',False)]}"> | ||
<field name="module_logistic_requisition_multicurrency" | ||
class="oe_inline"/> | ||
<label for="module_logistic_requisition_multicurrency"/> | ||
</div> | ||
<div attrs="{'invisible': [('module_logistic_requisition','=',False)]}"> | ||
<field name="module_logistic_order_multicurrency" | ||
class="oe_inline"/> | ||
<label for="module_logistic_order_multicurrency"/> | ||
</div> | ||
</div> | ||
</group> | ||
<separator string="Purchase Management"/> | ||
<group> | ||
<label for="id" string="Features"/> | ||
<div> | ||
<div> | ||
<field name="module_ngo_purchase_requisition" | ||
class="oe_inline"/> | ||
<label for="module_ngo_purchase_requisition"/> | ||
</div> | ||
<div> | ||
<field name="module_ngo_purchase" | ||
class="oe_inline"/> | ||
<label for="module_ngo_purchase"/> | ||
</div> | ||
<div> | ||
<field name="module_framework_agreement_requisition" | ||
class="oe_inline"/> | ||
<label for="module_framework_agreement_requisition"/> | ||
</div> | ||
<div attrs="{'invisible': [('module_logistic_requisition','=',False)]}"> | ||
<field name="module_framework_agreement_sourcing" | ||
class="oe_inline"/> | ||
<label for="module_framework_agreement_sourcing"/> | ||
</div> | ||
</div> | ||
</group> | ||
<separator string="Shipment"/> | ||
<group> | ||
<label for="id" string="Features"/> | ||
<div> | ||
<div> | ||
<field name="module_ngo_shipment_plan" | ||
class="oe_inline"/> | ||
<label for="module_ngo_shipment_plan"/> | ||
</div> | ||
<!-- | ||
<div> | ||
<field name="" | ||
class="oe_inline"/> | ||
<label for=""/> | ||
</div> | ||
--> | ||
</div> | ||
</group> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
<record id="action_ngo_configuration" model="ir.actions.act_window"> | ||
<field name="name">Configure NGO</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">ngo.config.settings</field> | ||
<field name="view_mode">form</field> | ||
<field name="target">inline</field> | ||
</record> | ||
|
||
<menuitem id="menu_ngo_configuration" | ||
name="NGO" parent="base.menu_config" | ||
sequence="32" | ||
action="action_ngo_configuration"/> | ||
|
||
|
||
</data> | ||
</openerp> |