[ADD] account_invoice_move_currency: exchange rate on customer invoices#251
Closed
cav-adhoc wants to merge 1 commit intoingadhoc:18.0from
Closed
[ADD] account_invoice_move_currency: exchange rate on customer invoices#251cav-adhoc wants to merge 1 commit intoingadhoc:18.0from
cav-adhoc wants to merge 1 commit intoingadhoc:18.0from
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Este PR agrega un nuevo módulo account_invoice_move_currency que permite a los usuarios especificar un tipo de cambio personalizado con fines informativos en las facturas de cliente. El módulo introduce dos campos nuevos en account.move: user_secondary_currency_id para seleccionar una moneda secundaria de referencia, y user_exchange_rate para mostrar/editar el tipo de cambio entre esa moneda y la moneda de la compañía.
Changes:
- Nuevo módulo completo con modelo, vista y documentación
- Campos computados y editables para tipo de cambio informativo
- Integración en formulario de facturas mediante herencia de vista
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
account_invoice_move_currency/__manifest__.py |
Define el módulo, dependencias y archivos de datos. Referencia archivo de seguridad inexistente |
account_invoice_move_currency/__init__.py |
Importa el paquete models |
account_invoice_move_currency/models/__init__.py |
Importa el modelo account_move |
account_invoice_move_currency/models/account_move.py |
Agrega campos user_secondary_currency_id y user_exchange_rate con método compute. Tiene varios problemas de lógica |
account_invoice_move_currency/views/account_move_view.xml |
Hereda vista de facturas para mostrar los nuevos campos. Xpath puede fallar y hay discrepancia con documentación |
account_invoice_move_currency/README.rst |
Documentación del módulo con instalación, configuración y uso |
75c907d to
9d935d5
Compare
This commit adds a new module 'account_invoice_move_currency' that allows users to specify a custom exchange rate on customer invoices. The module introduces two new fields on the account.move model: 'user_secondary_currency_id' for selecting a secondary currency, and 'user_exchange_rate' for entering the exchange rate. The exchange rate field is automatically computed based on the selected secondary currency and the invoice date, but remains editable for user input.
9d935d5 to
28a5e1b
Compare
Contributor
Author
|
sigue en #258 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This commit adds a new module 'account_invoice_move_currency' that allows users to specify a custom exchange rate on customer invoices. The module introduces two new fields on the account.move model: 'user_secondary_currency_id' for selecting a secondary currency, and 'user_exchange_rate' for entering the exchange rate. The exchange rate field is automatically computed based on the selected secondary currency and the invoice date, but remains editable for user input.