-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Showing
14 changed files
with
288 additions
and
387 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,11 @@ | ||
Logisitic budget | ||
================ | ||
|
||
This module adds a notion of budget on logistic requests and cost estimates. | ||
|
||
A line of a logistic request can have a budget and a pre-approval by a budget | ||
holder and a finance officer. | ||
|
||
The creation of a cost estimate can be done without approval or with a budget | ||
overrun. On the other hand, approving a cost estimate into a logistic order | ||
requires approval by the budget holder, and the limit must be respected. |
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
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,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data noupdate="1"> | ||
|
||
<record id="insufficient_budget" model="sale.exception"> | ||
<field name="name">Insufficient budget</field> | ||
<field name="description">The total amount of this cost estimate is over the total budget of all lines. Please review your price or ask the budget holder to increase the budget.</field> | ||
<field name="sequence">10</field> | ||
<field name="model">sale.order</field> | ||
<field name="code">if object.over_budget(): | ||
failed = True</field> | ||
<field name="active" eval="True"/> | ||
</record> | ||
|
||
<record id="no_budget_holder" model="sale.exception"> | ||
<field name="name">No Budget Holder</field> | ||
<field name="description">The Budget Holder has not validated the cost estimate, please ask for confirmation</field> | ||
<field name="sequence">20</field> | ||
<field name="model">sale.order</field> | ||
<field name="code">if not object.has_budget_holder(): | ||
failed = True</field> | ||
<field name="active" eval="True"/> | ||
</record> | ||
|
||
</data> | ||
</openerp> |
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
173 changes: 0 additions & 173 deletions
173
logistic_budget/test/requisition_create_cost_estimate.yml
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,29 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Author: Romain Deheele | ||
# Copyright 2014 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 . import test_purchase_split_requisition | ||
|
||
|
||
fast_suite = [ | ||
] | ||
|
||
checks = [ | ||
test_purchase_split_requisition, | ||
] | ||
from . import test_propagate_budget | ||
from . import test_unit_check | ||
from . import test_it_blocks |
Oops, something went wrong.