6 Commits
Author SHA1 Message Date
AMZIL Ayoub 695ff395cd [FIX] l10n_id: adapt the check to the new VAT regulation
The issue:
Currently, in Indonesia, the regulation for tax ID is 15 digits.
But a new regulation is coming where Tax ID is now 16 digits by adding 0 in front

The fix:
Remove the first zero and leave the rest for the _run_vat_test function

Related PR: #146111

opw-3782636

closes odoo/odoo#157885

Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2024-04-26 17:17:51 +00:00
AMZIL Ayoub 2d2a7729a7 [FIX] account: payment error on empty default post exchange difference journal
The issue:
when you make a payment and there is an exchange difference, since the post exchange difference is not set, it will throw a traceback

To reproduce:
- Enable 2 currencies
- Have the exchange difference journal set to NULL (empty)
- Create an invoice with a different currency than the one set for the company
- then register a payment.

The fix:
Throw a user error indicating to set the post exchange difference journal

opw-3783917
opw-3768202

closes odoo/odoo#157735

Signed-off-by: John Laterre (jol) <jol@odoo.com>
2024-04-26 10:05:16 +00:00
AMZIL Ayoub 197a64556d [FIX] account_edi: remove unused attachement as sudo
The issue:
A new fix has been introduced to solve the mimtype issue with creating an XML file: https://github.com/odoo/odoo/pull/124507
since the attachment create_uid now is the SUPERUSER_ID, when a user with the accounting role (not admin) tried to register a payment on any account.move type (invoice, credit note...) an access error is thrown

The fix:
remove the unused attachment as sudo

opw-3787008

closes odoo/odoo#159985

X-original-commit: 60dd56bf3f67cc944918ad4c23fa1ef5f2036e55
Signed-off-by: William André (wan) <wan@odoo.com>
2024-03-29 23:17:24 +00:00
AMZIL Ayoub dfc49f1545 [FIX] account, sale, purchase: fix multi invoice/quotation/purchase printing
The issue:
having 2 invoices/quotations/purchase orders with different customer, each customer has a different language, the 'Unaxed amount' string will get translated into the first language of the first invoice partner.

The fix:
recompute the total when the lang context change

opw-3569173

closes odoo/odoo#146311

X-original-commit: d48a09738bdde4050bc75f82480ff47ddeb8b553
Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2023-12-15 13:05:35 +00:00
AMZIL Ayoub ae5c5638f5 [FIX] base: fix default currency for Montenegro
The issue:
the default currency for Montenegro is LYD (Libyan Dinar) instead of EUR

The fix:
Set it to EUR

opw-3601783

closes odoo/odoo#145668

X-original-commit: 97c57c8dbb0f6ae19619c963552552454f92da93
Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
2023-12-09 02:19:39 +00:00
Ayoub Amzil c9e43c7bff [FIX] account: wrong currency separator in the tax field
The issue:
1.) Switch to German language (or any language that uses , versus . as a point separator
2.) Create a vendor bill
3.) Add items
4.) Click on the pencil/edit icon next to the tax field (below subtotal)
5.) Separator used is . instead of ,

The fix:
the field will use the right separator depending on the currency.

closes odoo/odoo#95147

X-original-commit: 3cca50bfca14f3748d16c43c25119dbe90972f7f
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2022-07-04 08:35:47 +02:00