Merge lp:~vauxoo/addons-vauxoo/addons-vauxoo-decimal_precision_tax-dev-julio into lp:addons-vauxoo

Proposed by Julio Serna-http://www.vauxoo.com
Status: Merged
Merged at revision: 357
Proposed branch: lp:~vauxoo/addons-vauxoo/addons-vauxoo-decimal_precision_tax-dev-julio
Merge into: lp:addons-vauxoo
Diff against target: 149 lines (+128/-0)
4 files modified
decimal_precision_tax/__init__.py (+26/-0)
decimal_precision_tax/__openerp__.py (+45/-0)
decimal_precision_tax/data/decimal_precision_tax.xml (+10/-0)
decimal_precision_tax/decimal_pre_tax.py (+47/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/addons-vauxoo-decimal_precision_tax-dev-julio
Reviewer Review Type Date Requested Status
Gabriela Quilarque Approve
Moisés López - http://www.vauxoo.com Pending
Review via email: mp+117145@code.launchpad.net

Description of the change

agrega las decimales al campo amount de account.tax

To post a comment you must log in.
Revision history for this message
Gabriela Quilarque (gabrielaquilarque97) wrote :

Listo, Merge realizado y probado.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'decimal_precision_tax'
=== added file 'decimal_precision_tax/__init__.py'
--- decimal_precision_tax/__init__.py 1970-01-01 00:00:00 +0000
+++ decimal_precision_tax/__init__.py 2012-07-27 23:23:19 +0000
@@ -0,0 +1,26 @@
1# -*- encoding: utf-8 -*-
2###########################################################################
3# Module Writen to OpenERP, Open Source Management Solution
4#
5# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
6# All Rights Reserved.
7# info@vauxoo.com
8############################################################################
9# Coded by: julio (julio@vauxoo.com)
10############################################################################
11#
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as
14# published by the Free Software Foundation, either version 3 of the
15# License, or (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24#
25##############################################################################
26import decimal_pre_tax
027
=== added file 'decimal_precision_tax/__openerp__.py'
--- decimal_precision_tax/__openerp__.py 1970-01-01 00:00:00 +0000
+++ decimal_precision_tax/__openerp__.py 2012-07-27 23:23:19 +0000
@@ -0,0 +1,45 @@
1# -*- encoding: utf-8 -*-
2###########################################################################
3# Module Writen to OpenERP, Open Source Management Solution
4#
5# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
6# All Rights Reserved.
7# info@vauxoo.com
8############################################################################
9# Coded by: julio (julio@vauxoo.com)
10############################################################################
11#
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as
14# published by the Free Software Foundation, either version 3 of the
15# License, or (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24#
25##############################################################################
26{
27 "name" : "Decimal Precision to Rate Tax",
28 "version" : "0.1",
29 "depends" : ["base","decimal_precision"],
30 "author" : "Vauxoo",
31 "description" : """
32 This module, add decimal precision format to Rate Tax.
33 """,
34 "website" : "http://vauxoo.com",
35 "category" : "Administracion/Personalizacion/Estructura de la base de datos/Precision Decimal",
36 "init_xml" : [
37 ],
38 "demo_xml" : [
39 ],
40 "update_xml" : [
41 "data/decimal_precision_tax.xml",
42 ],
43 "active": False,
44 "installable": True,
45}
046
=== added directory 'decimal_precision_tax/data'
=== added file 'decimal_precision_tax/data/decimal_precision_tax.xml'
--- decimal_precision_tax/data/decimal_precision_tax.xml 1970-01-01 00:00:00 +0000
+++ decimal_precision_tax/data/decimal_precision_tax.xml 2012-07-27 23:23:19 +0000
@@ -0,0 +1,10 @@
1<?xml version="1.0"?>
2<openerp>
3 <data noupdate="1">
4 <!-- Decimal Precision -->
5 <record forcecreate="True" id="decimal_precision_tax" model="decimal.precision">
6 <field name="name">Tax</field>
7 <field name="digits">2</field>
8 </record>
9 </data>
10</openerp>
011
=== added file 'decimal_precision_tax/decimal_pre_tax.py'
--- decimal_precision_tax/decimal_pre_tax.py 1970-01-01 00:00:00 +0000
+++ decimal_precision_tax/decimal_pre_tax.py 2012-07-27 23:23:19 +0000
@@ -0,0 +1,47 @@
1# -*- encoding: utf-8 -*-
2###########################################################################
3# Module Writen to OpenERP, Open Source Management Solution
4#
5# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
6# All Rights Reserved.
7# info@vauxoo.com
8############################################################################
9# Coded by: julio (julio@vauxoo.com)
10############################################################################
11#
12# This program is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Affero General Public License as
14# published by the Free Software Foundation, either version 3 of the
15# License, or (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Affero General Public License for more details.
21#
22# You should have received a copy of the GNU Affero General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24#
25##############################################################################
26from osv import osv
27from osv import fields
28from tools.translate import _
29from tools import config
30import time
31import datetime
32import decimal_precision as dp
33
34class account_tax(osv.osv):
35
36 _inherit = "account.tax"
37 _columns= {
38 'amount': fields.float('Amount', digits_compute= dp.get_precision('Tax'), required=True, help="For taxes of type percentage, enter % ratio between 0-1."),
39 }
40account_tax()
41
42
43
44
45
46
47