Tuesday, January 14, 2020
31 changes
Miscellaneous changes
Before that, the general ledger's tax summary always displayed base amounts for tax groups consisting of 'sale' or 'purchase' taxes, causing double reporting (once under the base amount of the group, once under the child taxes'). We solved that by directly calling the generic tax report, which already supported that. Forward-Port-Of: odoo/enterprise#7616 Forward-Port-Of: odoo/enterprise#7357
Original PR description
Before that, the general ledger's tax summary always displayed base amounts for tax groups consisting of 'sale' or 'purchase' taxes, causing double reporting (once under the base amount of the group, once under the child taxes'). We solved that by directly calling the generic tax report, which already supported that. Forward-Port-Of: odoo/enterprise#7616 Forward-Port-Of: odoo/enterprise#7357
The QR that is added in the PDF, show the CFDI amount total, and must be consistent to allow found the CFDI in the SAT. But in the next case: 1. Create an invoice with the next values in the line: - Quantity = 1 - Unit Price = 52,159.87 - Taxes: 16% Then the invoice total = 60,505.45 But the field that save that total is monetary and saves 60505.450000000004.  Now the report round the amount to the currency decimals. QR content without this change: https://verificacfdi.facturaelectronica.sat.gob.mx/default.aspx?id=F88B0D48-78A1-4059-9ECA-4E15138B93AA&rr=LCO100531F89&tt=60505.450000000004&re=CGM190701FJ1&fe=9wwVfQ== QR now: https://verificacfdi.facturaelectronica.sat.gob.mx/default.aspx?id=F88B0D48-78A1-4059-9ECA-4E15138B93AA&rr=LCO100531F89&tt=60505.45&re=CGM190701FJ1&fe=9wwVfQ== Forward-Port-Of: odoo/enterprise#7694
Steps to reproduce the bug: - Install account_asset - Go to Accounting > Settings > Untick Analytic Tags - Go to Accounting > Configuration > Asset Types - Click on create Bug: The Analytic Tag field appeared even if the user was not in the group group_analytic_tags opw:2119832 Forward-Port-Of: odoo/enterprise#7666
Original PR description
Steps to reproduce the bug: - Install account_asset - Go to Accounting > Settings > Untick Analytic Tags - Go to Accounting > Configuration > Asset Types - Click on create Bug: The Analytic Tag field appeared even if the user was not in the group group_analytic_tags opw:2119832 Forward-Port-Of: odoo/enterprise#7666
1. Without demo Install all the l10n_es modules 2. Create a customer with Country = Germany, VAT = DE284325906 and Fiscal Position = Régimen Intracomunitario 3. Create an invoice for this customer. 4. Create a sales order for this customer, confirm it and invoice the order. There will be no AEAT data relative to mod 349, but the invoice should be recognized as out-invoice. This because the context is missing the type right before the invoice creation. Adding a create override to set t
Original PR description
1. Without demo Install all the l10n_es modules 2. Create a customer with Country = Germany, VAT = DE284325906 and Fiscal Position = Régimen Intracomunitario 3. Create an invoice for this customer. 4. Create a sales order for this customer, confirm it and invoice the order. There will be no AEAT data relative to mod 349, but the invoice should be recognized as out-invoice. This because the context is missing the type right before the invoice creation. Adding a create override to set the type afterward opw-2165687 Forward-Port-Of: odoo/enterprise#7653 Forward-Port-Of: odoo/enterprise#7626
…properly https://github.com/odoo/odoo/issues/42326 Steps to reproduce: -install expenses -activate developer mode. -go to expenses > pick any expense with a visible attachment (pdf is easy) Previous behavior: the write_uid and write_date is updated every time the attachment viewer is loaded Current behavior: expense metadata are properly managed on page load opw-2156469 Forward-Port-Of: odoo/enterprise#7434
Original PR description
…properly https://github.com/odoo/odoo/issues/42326 Steps to reproduce: -install expenses -activate developer mode. -go to expenses > pick any expense with a visible attachment (pdf is easy) Previous behavior: the write_uid and write_date is updated every time the attachment viewer is loaded Current behavior: expense metadata are properly managed on page load opw-2156469 Forward-Port-Of: odoo/enterprise#7434
Install the l10n_mx_edi module, then uninstall it. It is then not possible to reinstall it, because it created some ir_model_data in l10n_mx_edi that is not uninstalled. Since it tries to reinsert that data, this creates an integrity error. ```psycopg2.IntegrityError: duplicate key value violates unique constraint "ir_model_data_module_name_uniq_index" DETAIL: Key (module, name)=(l10n_mx_edi_external_trade, tariff_fraction_01013001) already exists. ``` Now, when the module is unins
Original PR description
Install the l10n_mx_edi module, then uninstall it. It is then not possible to reinstall it, because it created some ir_model_data in l10n_mx_edi that is not uninstalled. Since it tries to reinsert that data, this creates an integrity error. ```psycopg2.IntegrityError: duplicate key value violates unique constraint "ir_model_data_module_name_uniq_index" DETAIL: Key (module, name)=(l10n_mx_edi_external_trade, tariff_fraction_01013001) already exists. ``` Now, when the module is uninstalled, remove the tariff fraction data, to avoid the error when trying load again. opw#2168918 Forward-Port-Of: odoo/enterprise#7664