- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 567
 
[14.0][ADD] l10n_es_digital_canon #4343
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: 14.0
Are you sure you want to change the base?
[14.0][ADD] l10n_es_digital_canon #4343
Conversation
5cc6dbb    to
    e6384c6      
    Compare
  
    e6384c6    to
    50c07a8      
    Compare
  
    | _inherit = "account.move.line" | ||
| 
               | 
          ||
| def _get_computed_taxes(self): | ||
| self.ensure_one() | 
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 no debería hacer falta.
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 he encontrado otra manera, a nivel de línea de factura no pasa nunca el producto por el map_tax
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.
Según veo, esto ocurre por este condicional:
en el que si no tiene posición fiscal asignada, no hace esa llamada. Lo que tú puedes hacer es sobreescribir ese método y hacer la misma llamada al método cuando no hay posición fiscal.
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 solo se maneja en ese caso, sino que hay varios métodos onchange que lo llaman sin producto. En _set_price_and_tax_after_fpos, los taxes ya están asignados, y todas las demás llamadas a map_tax obtienen los impuestos a través de _get_computed_taxes
50c07a8    to
    0975a7d      
    Compare
  
    b18df2e    to
    05480c1      
    Compare
  
    | 
           ping @carlosdauden  | 
    
fa547e4    to
    1a9106a      
    Compare
  
    596ec44    to
    4581284      
    Compare
  
    4581284    to
    5a15cc2      
    Compare
  
    TT56706
5a15cc2    to
    0aa3da6      
    Compare
  
    
@Tecnativa TT56706
@carlosdauden @sergio-teruel @pedrobaeza