~camptocamp/account-financial-tools/credit_control_report_improvement_vre

« back to all changes in this revision

Viewing changes to account_default_draft_move/__openerp__.py

  • Committer: Joel Grand-Guillaume
  • Date: 2013-01-28 14:16:16 UTC
  • mfrom: (95.2.11 account_default_draft_move)
  • Revision ID: joel.grandguillaume@camptocamp.com-20130128141616-22ca3aboxmte4n81
[MRG] [ADD] account_default_draft_move module. The purpose is to ensure that all move that are generated by the system, through invoice or bank statement are in draft

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
##############################################################################
 
3
#
 
4
#    Author Vincent Renaville/Joel Grand-Guillaume. Copyright 2012 Camptocamp SA
 
5
#
 
6
#    This program is free software: you can redistribute it and/or modify
 
7
#    it under the terms of the GNU Affero General Public License as
 
8
#    published by the Free Software Foundation, either version 3 of the
 
9
#    License, or (at your option) any later version.
 
10
#
 
11
#    This program is distributed in the hope that it will be useful,
 
12
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
#    GNU Affero General Public License for more details.
 
15
#
 
16
#    You should have received a copy of the GNU Affero General Public License
 
17
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
##############################################################################
 
19
{
 
20
    "name" : "Move in draft state by default",
 
21
    "version" : "1.0",
 
22
    "depends" : ["base", "account", "account_constraints"],
 
23
    "author" : "Camptocamp",
 
24
    'license': 'AGPL-3',
 
25
    "description": """
 
26
Let the generated move in draft on invoice and bank statement
 
27
validation. The main reason is to ease the user work day-to-day. At
 
28
first we used account_cancel, but this module allow to cancel posted
 
29
move and that's not allowed.
 
30
 
 
31
Two needs here:
 
32
 
 
33
- We want to be able to cancel an invoice (as soon as move are not
 
34
  validated) without making a refund. Posted move can't be canceled.
 
35
- We want to ensure all move generated from bank statement and invoice
 
36
  are generated in draft so we can still change them if needed.
 
37
 
 
38
Use this module with account_constraints (find it here:
 
39
https://launchpad.net/account-financial-tools or in
 
40
http://apps.openerp.com) and you'll get closely the same feature as
 
41
account_cancel, but with the insurance that user won't change posted
 
42
move.
 
43
 
 
44
The new framework will then be: always work with draft moves, allowing
 
45
people to change what they want. At the end of the period, validate all
 
46
moves. Till there, you ensure no-one can change something (or they'll
 
47
need to make a refund).
 
48
 
 
49
    """,
 
50
    'website': 'http://www.camptocamp.com',
 
51
    'data' : [],
 
52
    'installable': True,
 
53
    'active': False,
 
54
}
 
55
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: