- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 567
 
[16.0][FIX] l10n_es_aeat: Manage AEAT Real Estates #3086
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
base: 16.0
Are you sure you want to change the base?
Conversation
| 
           Hi @pedrobaeza,  | 
    
4f6fdf1    to
    a63b883      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¿Podría sacarse un desplegable de:
Código de provincias (Spanish_states) https://sede.agenciatributaria.gob.es/Sede/ayuda/tablas-auxiliares-domicilios/provincias.html (1a columna)
Código de municipios (Township_code) https://sede.agenciatributaria.gob.es/Sede/ayuda/tablas-auxiliares-domicilios/municipios.html (2a columna)
?
Gracias
d88d5da    to
    0161c79      
    Compare
  
    | 
           @loida-vm He creado un nuevo modelo para los municipios para que una vez que se seleccione la provincia, se pueda seleccionar el municipio y se auto rellene la ciudad.  | 
    
| 
           Este PR viene de #2893 ¡Gracias!  | 
    
          
 Perfecto @Shide . En la plantilla ahora solo me aparecen los nombres y no los códigos, pero si hubiera que sacar los datos imagino que sacaría también el código, ¿verdad? Muchas gracias!  | 
    
0161c79    to
    43d5c19      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En lugar de tener otra tabla más muy populada, creo que habría que utilizar l10n_es_toponyms, y extraer el código de provincia de los 2 primeros dígitos del CP, aunque teniendo el res.country.state, no lo veo necesario.
| } | ||
| 
               | 
          ||
| # https://sede.agenciatributaria.gob.es/Sede/ayuda/tablas-auxiliares-domicilios/tipos-vias.html | ||
| AEAT_ADDRESS_TYPES = [ | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esto se utilizar solo en un sitio, así que no veo la necesidad de mover el otro diccionario y poner esto aquí. Ponlo directamente en el archivo py donde se utiliza, y si es necesario utilizarlo en otro sitio, se puede importar desde ese archivo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Son 300 y pico líneas directamente en el fichero de l10n_es_aeat_real_estate.py y en la parte superior del fichero. Ensucia un poco la legibilidad al tener que hacer tanto scroll nada más abrir el fichero y además ya existe el fichero aeat_data.py (antes se llamaba spanish_states_mapping.py y lo he renombrado), que creo que es apropiado utilizarlo para estos casos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vale, pues no cambies el mapeo de provincias, y crea un nuevo archivo para esto. Lo que no quiero es un diff grande sin necesidad
| compute_sudo=True, | ||
| ) | ||
| township_domain = fields.Many2many( | ||
| comodel_name="l10n.es.aeat.township", | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sustituir por res.city.zip.
| from odoo.tools import config | ||
| 
               | 
          ||
| from .spanish_states_mapping import SPANISH_STATES as ss | ||
| from .aeat_data import AEAT_STATES_CODE_MAP as ascm | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No es necesario este cambio como se ha comentado.
10ed08c    to
    bc2265d      
    Compare
  
    053b670    to
    8255f63      
    Compare
  
    | 
           @Shide or @EmilioPascual please, could you rebase? Thank you!  | 
    
8255f63    to
    dc4bbcf      
    Compare
  
    | 
           @Shide or @EmilioPascual please, could you rebase? Thank you!  | 
    
dc4bbcf    to
    b838f47      
    Compare
  
    | 
           @Shide or @EmilioPascual will rebase next monday 😄 and review all comments. Thank you! ❤️  | 
    
| 
           @rafaelbn Could you review comments and rebase?  | 
    
| 
           OK @mariancuadranetkia . Tomorrow we will make the rebase and review 😄 . Please @Shide could dedicate some time? Then we can go ahead to review #3617 Juraría que aquí en localización podemos hablar en castellano 😄  | 
    
| 
           Hello, just to inform that we could review this PR in the OCA Sprint Code in October. Until that moment we don't have time for this. Sorry.  | 
    
| 
           Hasta donde sé, sí, podemos hablar en castellano jeje  | 
    
| 
           There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.  | 
    
12fe01c    to
    40113e2      
    Compare
  
    | 
           Please @OCA/local-spain-maintainers , could you remove the Stale label? Thank you!  | 
    
40113e2    to
    c563af5      
    Compare
  
    | 
           There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.  | 
    
Gestión de los Real Estates.
Es un PR inicial/base para cuando se decida incluirlos en los modelos de la AEAT.
MT-3113 @moduon @ArantxaSudon @loida-vm @rafaelbn