16 Commits
Author SHA1 Message Date
Ruben Gomes (rugo) b54df52774 [IMP] odoo.tools: add rounding_mode and amount_rounding to formatLang
Adds the possibility to give formatLang() a 'rounding_mode' (any Decimal rounding mode)
and an amount_rounding ('decimals', 'units', 'thousands', 'millions' and 'lakhs').

'amount_rounding' will display the amount in the given unit. For example, 10456 in 'thousands' will be 10.

task-3626894

closes odoo/odoo#151314

Related: odoo/enterprise#55218
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2024-02-16 12:12:41 +00:00
Ruben Gomes (rugo) a454456148 [REF] odoo.tools: clean up formatLang
Simplify and clean up formatLang code (in preparation for improvement).

Part-of: odoo/odoo#151314
2024-02-16 12:12:41 +00:00
Ruben Gomes (rugo) e538c584ec [IMP] odoo.tools: add HALF-EVEN and HALF-DOWN to float_round
Add support for `HALF-EVEN` and `HALF-DOWN` as value
for `rounding_method` argument of `float_round()`.

closes odoo/odoo#152227

Signed-off-by: Raphael Collet <rco@odoo.com>
2024-02-05 13:48:29 +00:00
Ruben Gomes (rugo) a819d7190c [IMP] odoo.tools: add tests to formatLang()
Tests the method formatLang() to be able to do safe(r) refactoring in future versions.

closes odoo/odoo#149775

Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2024-01-19 19:10:54 +00:00
Ruben Gomes (rugo) 7c05beaa89 [FIX] l10n_*: anglo saxon accounting
The anglo saxon accounting was set in the wrong field.

It should be set in the field 'anglo_saxon_accounting' on the company
and not 'use_anglo_saxon' on the configs.

task-3642826

closes odoo/odoo#149190

X-original-commit: 3160749a173b01e93f91dea72d1dcc5370ea44f7
Signed-off-by: William André (wan) <wan@odoo.com>
2024-01-16 09:55:24 +00:00
Ruben Gomes (rugo) 292dfc20ba [REF] web: nested_sortable_tests
Exports the sortableDrag function, so it can be used in other modules (like account_reports for example).

closes odoo/odoo#145027

Related: odoo/enterprise#50283
Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
2023-12-08 15:57:46 +00:00
Ruben Gomes (rugo) 580b83598b [IMP] web_tour: tour_utils
Add export to 'getDifferentParents' and 'triggerPointerEvent'.

It is useful for creating a custom drag and drop for example.

closes odoo/odoo#140542

Related: odoo/enterprise#49926
Signed-off-by: Ruben Gomes (rugo) <rugo@odoo.com>
2023-11-03 07:34:56 +00:00
Ruben Gomes b5394a93f7 [FIX] account: tour bold text
Make 'Invoice app' text bold.

closes odoo/odoo#131318

X-original-commit: e6190d86621c6d11736096adf9a87ca3d24b4fb1
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Signed-off-by: Ruben Gomes (rugo) <rugo@odoo.com>
2023-08-09 09:11:23 +02:00
Ruben Gomes a2b0c9281d [IMP] account: usability improvements
This commit is part of the refactoring and improvement of the html and css of account_reports (enterprise).

Here we:

- Remove blank_if_zero default value of True, it is now False by default. The zeros are now shown in a muted gray color.
- As we had a level of hierarchy 0 that allows for some further styling we needed to adapt _compute_hierarchy_level to take it into account when calculating the increase level. So if the level is 0 or 1, the child will have a level of 3 either way.
- Removed some UPPERCASE column styling.

Task-id 3251726

closes odoo/odoo#129232

X-original-commit: 56a7f7745c5df9b70e6fe5b78f401085ce46284c
Related: odoo/enterprise#44436
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2023-07-24 15:51:57 +02:00
Ruben Gomes 28f96e743a [FIX] web: wrap search view options
When there is too many options inside search view, they didn't wrap and will overflow outside the screen.

closes odoo/odoo#102812

X-original-commit: 8a63d9773b14e212618c3d0d298f0926547e1045
Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
2022-10-10 11:57:13 +02:00
Ruben Gomes 9ff1f4000b [FIX] l10n_hu: fix COA, taxes and tax report
Fix chart of accounts, taxes, tax report and fiscal positions for Hungarian localization

closes odoo/odoo#97883

Task-id: 2816907
Related: odoo/enterprise#30274
Signed-off-by: Ruben Gomes <rugo@odoo.com>
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2022-09-16 11:12:29 +02:00
Ruben Gomes 04aa56e9f0 [IMP] l10n_si: update CoA, taxes and tax report
Update chart of accounts, taxes, tax report and fiscal positions for Slovenian localization

closes odoo/odoo#97893

Task-id: 2724396
Related: odoo/enterprise#30282
Signed-off-by: Ruben Gomes <rugo@odoo.com>
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2022-09-12 11:38:05 +02:00
Ruben Gomes c9342ecbfe [ADD] l10n_bg: add COA, taxes and tax report
Add chart of accounts, taxes and tax report for Bulgarian localization

closes odoo/odoo#97525

Task-id: 2694779
X-original-commit: 48cb4d631ddf953855d8b7b3422722ab59cf866d
Related: odoo/enterprise#30153
Signed-off-by: Ruben Gomes <rugo@odoo.com>
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2022-08-08 21:02:27 +02:00
Ruben Gomes 8bae2f6227 [IMP] account menu item : move Analytic Items
Move Analytics Items menu item from Configuration > Management to Configuration > Analytics Accounting

closes odoo/odoo#85266

Task: task-2774909
Signed-off-by: Ruben Gomes <rugo@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2022-03-25 11:22:41 +01:00
Ruben Gomes 0df8a0d955 [FIX] mobile: calculation of invoice lines and journal items on update
Problem :
* updating an invoice line on mobile would result in an incorrect untaxed amount, tax amount and total amount on the invoice and an incorrect entries in the journal items
* subtotal of invoice line was not showing in mobile view

Solution :
* the problem was that debit and credit fields were missing from the view so onchange were not trigger

closes odoo/odoo#85877

Task: task-2766245
X-original-commit: c1b9c96dddaa02209bae042481781dd175a678dc
Signed-off-by: Ruben Gomes <rugo@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2022-03-05 09:46:37 +00:00
rugo-odoo 86c394a93e [ADD] l10n_hu: update CoA
closes odoo/odoo#83234

closes odoo/odoo#85229

Related: odoo/enterprise#23696
Related: odoo/enterprise#24678
X-original-commit: 2adf6fa72e6ee34ea41f3628c5a1ffb0ffd0c92d
Signed-off-by: William André (wan) <wan@odoo.com>
2022-02-23 17:12:49 +00:00