File tree 3 files changed +35
-0
lines changed
l10n_ar_account_vat_ledger
3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 5
5
##############################################################################
6
6
from . import account
7
7
from . import account_vat_report
8
+ from . import account_invoice
Original file line number Diff line number Diff line change 5
5
##############################################################################
6
6
from openerp import models , fields , api , _
7
7
import openerp .addons .decimal_precision as dp
8
+ import logging
9
+ _logger = logging .getLogger (__name__ )
8
10
9
11
10
12
# TODO mejorar y usar los signos de tax codes para todo (o signo del impuesto)
@@ -35,6 +37,8 @@ class afip_document_class(models.Model):
35
37
def _get_amounts (self ):
36
38
"""
37
39
"""
40
+ _logger .info ('Getting amounts for document class %s(%s)' % (
41
+ self .name , self .id ))
38
42
vat_ledger_id = self ._context .get ('vat_ledger_id' , False )
39
43
if vat_ledger_id :
40
44
vat_ledger = self .env ['account.vat.ledger' ].browse (vat_ledger_id )
@@ -85,6 +89,8 @@ class account_tax_code(models.Model):
85
89
def _get_amounts (self ):
86
90
"""
87
91
"""
92
+ _logger .info ('Getting amounts for tax code %s(%s)' % (
93
+ self .name , self .id ))
88
94
amount_untaxed = False
89
95
amount_tax = False
90
96
amount_total = False
@@ -156,6 +162,8 @@ class afip_responsability(models.Model):
156
162
def _get_amounts (self ):
157
163
"""
158
164
"""
165
+ _logger .info ('Getting amounts for responsability %s(%s)' % (
166
+ self .name , self .id ))
159
167
amount_untaxed = False
160
168
amount_tax = False
161
169
amount_total = False
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ ##############################################################################
3
+ # For copyright and license notices, see __openerp__.py file in module root
4
+ # directory
5
+ ##############################################################################
6
+ from openerp import models , fields
7
+ import logging
8
+ _logger = logging .getLogger (__name__ )
9
+
10
+
11
+ # for performance
12
+ # TODO this should be suggested to odoo by a PR
13
+ class AccountInvoiceLine (models .Model ):
14
+ _inherit = 'account.invoice.line'
15
+
16
+ invoice_id = fields .Many2one (
17
+ auto_join = True
18
+ )
19
+
20
+
21
+ class AccountInvoiceTax (models .Model ):
22
+ _inherit = 'account.invoice.tax'
23
+
24
+ invoice_id = fields .Many2one (
25
+ auto_join = True
26
+ )
You can’t perform that action at this time.
0 commit comments