Daily updates from Odoo
Friday, March 9, 2018
1 change · master
New functionality added to Odoo
Mexican electronic invoices now use SAT-defined decimal limits for each currency and a fixed precision for exchange rates. This helps invoices comply with Mexican tax authority requirements and reduces validation issues when using currencies with different decimal rules.
Original PR description
According to the SAT, amounts in the CFDI must have a specific maximum of decimal digits, which depends on the currency of that amount. For this purpose, the SAT provides a catalog, where a list of…
According to the SAT, amounts in the CFDI must have a specific maximum of decimal digits, which depends on the currency of that amount. For this purpose, the SAT provides a catalog, where a list of currencies are provided along with their number of allowed decimal digits (named `c_moneda`). [SAT Catalog](http://www.sat.gob.mx/informacion_fiscal/factura_electronica/Documents/catCFDI.xls) This change adds a new field to the res.currency model to store the maximum number of decimal digits, and adds the data provided by the SAT's catalog. The following currencies are not included because there is a mismatch between the currencies supported in the SAT's catalog and the ones supported by Odoo: - SDG: was put out of circulation in 2007, SDD is now used. - SRD: not supported yet in Odoo, still supporting SRG, even though the currency change took place in 2004 - TMT: not supported yet in Odoo, still supporting TMM, even though the currency change took place in 2009 - ZMW: not supported yet in Odoo, still supporting ZMK, even though the currency change took place in 2012 - ZWL: not supported yet in Odoo, still supporting ZWD