~openerp-community/openobject-addons/elico-6.0

« back to all changes in this revision

Viewing changes to account_invoice_line_decimal_precision/__openerp__.py

  • Committer: Eric Caudal
  • Date: 2011-12-30 10:54:26 UTC
  • Revision ID: contact@elico-corp.com-20111230105426-ikfcqdp3z8pum0e5
[ADD] added new decimal precision modules for standard cost and stock moves

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
##############################################################################
3
 
#
4
 
#    OpenERP, Open Source Management Solution
5
 
#    Copyright (c) 2010-2011 Elico Corp. All Rights Reserved.
6
 
#    Author: Ian Li <ian.li@elico-corp.com>
7
 
#
8
 
#    This program is free software: you can redistribute it and/or modify
9
 
#    it under the terms of the GNU Affero General Public License as
10
 
#    published by the Free Software Foundation, either version 3 of the
11
 
#    License, or (at your option) any later version.
12
 
#
13
 
#    This program is distributed in the hope that it will be useful,
14
 
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
#    GNU Affero General Public License for more details.
17
 
#
18
 
#    You should have received a copy of the GNU Affero General Public License
19
 
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
 
#
21
 
##############################################################################
22
 
 
23
 
 
24
 
{
25
 
    'name': 'Invoice Line with Different Decimal  Precision',
26
 
    'version': '0.2',
27
 
    'category': 'Accounting / Invoicing',
28
 
    'description': """
29
 
This module corrects the following limitations in OpenERP standard modules:
30
 
- In standard accounting module, all objects in the invoice line (unit price, subtotal, etc) are setup following
31
 
decimal precision given by 'Account' (eg: 2).
32
 
- In standard product module, standard cost in product_template is defined following 'Account' decimal precision.
33
 
 
34
 
This module introduces a new decimal precision 'Account Line' so that you can have prices in Invoice Line with different accuracy (eg:4)
35
 
This means that you can have 2 digits for the invoice total calculation and 4 digits for the invoice details and unit price. 
36
 
 
37
 
Additionally, we apply the same decimal precision 'Account Line' to the standard cost in product_template.
38
 
 
39
 
""",
40
 
    'author': 'Elico Corp',
41
 
    'website': 'http://www.openerp.net.cn',
42
 
    'depends': ['account','decimal_precision', 'product'],
43
 
    'init_xml': [],
44
 
    'update_xml': [
45
 
                'data/decimal.precision.xml',
46
 
        ],
47
 
    'demo_xml': [], 
48
 
    'test': [],
49
 
    'installable': True,
50
 
    'active': False,
51
 
    'certificate': '',
52
 
}