Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR de prueba de Daniel Libonati #854

Open
wants to merge 3 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
> **No me gusta mi camisa**
>
> *Version affectada:*
>
> - 7.0 y encima
>
> *Pasos para reproducir:*
>
> 1. ponerse antes de un espejo
> 2. prender la luz
> 3. abrir los ojos
>
> *Lo que pasa actualmente:*
>
> - Asusto
>
> *Lo que debe pasar:*
>
> - Todo bien, listo para la fiesta
>
> *Analisis profunda:*
>
> - Yo cre que la causa raiz es...
> - Yo creo que es relevante, pensar en...
> - Yo he encontrado los siguientes vinculos que se relacionan al tema...
> - Yo creo que es relacionado a los siguientes "issues"...
# No me gusta mi camisa

*Version afectada:*

- 7.0 o superior.

*Pasos para reproducir:*

1. Pararse ante un espejo.
2. Encender la luz.
3. abrir los ojos.

*Lo que pasa actualmente:*

- Asusto.

*Lo que debe pasar:*

- Todo bien, listo para la fiesta.

*Analisis profunda:*

- Yo creo que la causa raiz es...
- Yo creo que es relevante, pensar en...
- Yo he encontrado los siguientes vinculos que se relacionan al tema...
- Yo creo que es relacionado a los siguientes "issues"...
5 changes: 4 additions & 1 deletion l10n_ar_account_withholding/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ class AccountMoveLine(models.Model):
def _compute_all_tax(self):
""" Mandamos en contexto el invoice_date para calculo de impuesto con partner aliquot"""
for line in self:
line = line.with_context(invoice_date=line.move_id.invoice_date if not line.move_id.reversed_entry_id else line.move_id.reversed_entry_id.invoice_date)
line = line.with_context(
invoice_date = line.move_id.invoice_date \
if not line.move_id.reversed_entry_id \
else line.move_id.reversed_entry_id.invoice_date)
super(AccountMoveLine, line)._compute_all_tax()
17 changes: 15 additions & 2 deletions l10n_ar_account_withholding/tests/test_arba.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,25 @@

class TestARBA(common.TransactionCase):
def test_0_arbaconnect(self):
partner = self.env['res.partner'].create({'name': 'test_company','l10n_latam_identification_type_id': self.env.ref('l10n_ar.it_cuit').id,'vat':'30697130841'})
company = self.env['res.company'].create({'name': 'test_company','partner_id': partner.id,'vat':'30697130841'})
partner = self.env['res.partner'].create({
'name': 'test_company',
'l10n_latam_identification_type_id': self.env.ref('l10n_ar.it_cuit').id,
'vat':'30697130841'
})

company = self.env['res.company'].create({
'name': 'test_company',
'partner_id': partner.id,
'vat':'30697130841'
})

self.env.company = company

with self.assertRaisesRegex(UserError, 'You must configure CIT'):
self.env.company.arba_connect()

company.vat = ''

with self.assertRaisesRegex(UserError, 'No VAT configured'):
self.env.company.arba_connect()