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

[FIX] l10n_ar_edi_ux: We consider whether the surname or first name data is empty #363

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

mem-adhoc
Copy link
Contributor

Task: 29136

@roboadhoc
Copy link
Contributor

@mem-adhoc mem-adhoc force-pushed the 16.0-t-29136-mem branch 2 times, most recently from 39f8e54 to f95b118 Compare April 23, 2024 14:02
@mem-adhoc mem-adhoc force-pushed the 16.0-t-29136-mem branch 2 times, most recently from 8c3e565 to 9fed904 Compare June 4, 2024 16:44
l10n_ar_edi_ux/models/res_partner.py Outdated Show resolved Hide resolved
#Limpiamos los diccionarios para quitarle los valores None
if dictionary and type(dictionary) == dict:
for val in dictionary:
dictionary[val] = type_replace if not dictionary[val] else dictionary[val]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only check the element, and replace it with the type_replace that match if None

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we take the dictionary and really check if it has any None element, if it is None we replace it.

Comment on lines +149 to 147
self._clean_dict(data_rg.get("categoriaMonotributo"), type_replace={})
cat_mt = data_mt.get("categoriaMonotributo", {})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to remove second line, cat_mt = elf._clean_dict(data_rg.get("categoriaMonotributo"), type_replace={})

Comment on lines +100 to 98
self._clean_dict(data_mt.get("actividadMonotributista"), type_replace=[])
data_mt_actividades = data_mt.get("actividadMonotributista", []) or []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fusionar

self._clean_dict(data_mt.get("impuesto"), type_replace=[])
import pdb
pdb.set_trace()
self._clean_dict(data_rg.get("impuesto"), type_replace=[])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esta repetido

Comment on lines +86 to 87
self._clean_dict(data.get("domicilioFiscal"), type_replace={})
domicilio = data.get("domicilioFiscal", {})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fusionar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_clean_dict does not return anything, check if the dictionary had a None value and replace it. What do you mean by fusion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants