2
0
OCA account financial tools fork
Go to file
Jairo Llopis 1067d0ea1b
[FIX] account_journal_general_sequence: provide defaults for sorting
Under some weird scenarios where some modules are involved, several invoices are posted at the same time, and no invoice exists, we could get to the case when `one.date` or `one.name` were `False`.

Here I provide a default value to avoid comparing `str` to `bool` in those cases.

Tried a lot but couldn't reproduce the test case in code, sorry 😕. However, the traceback was clear:

```
File "/opt/odoo/auto/addons/account_journal_general_sequence/models/account_move.py", line 64, in _compute_entry_number
  for move in chosen.sorted(lambda one: (one.date, one.name, one.id)):
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 5583, in sorted
  ids = tuple(item.id for item in sorted(self, key=key, reverse=reverse))
TypeError: '<' not supported between instances of 'str' and 'bool'
```

@moduon MT-5559
2024-03-25 10:51:45 +00:00
.github/workflows [IMP] update dotfiles 2023-10-27 18:07:13 +02:00
account_account_tag_code Translated using Weblate (Spanish) 2024-02-16 21:35:05 +00:00
account_asset_batch_compute [UPD] README.rst 2023-09-03 11:22:10 +00:00
account_asset_management Translated using Weblate (Spanish) 2024-02-16 21:35:04 +00:00
account_cash_deposit Update translation files 2023-10-09 10:05:53 +00:00
account_chart_update Translated using Weblate (Portuguese (Brazil)) 2023-12-28 22:35:18 +00:00
account_chart_update_l10n_eu_oss_oca Translated using Weblate (Spanish) 2023-11-06 20:36:56 +00:00
account_fiscal_month [BOT] post-merge updates 2023-11-04 23:54:49 +00:00
account_fiscal_position_vat_check Translated using Weblate (Dutch) 2023-11-14 17:36:30 +00:00
account_fiscal_year [UPD] README.rst 2023-09-03 11:22:10 +00:00
account_fiscal_year_auto_create [UPD] README.rst 2023-09-03 11:22:10 +00:00
account_invoice_constraint_chronology Translated using Weblate (Dutch) 2024-01-13 12:53:47 +00:00
account_journal_general_sequence [FIX] account_journal_general_sequence: provide defaults for sorting 2024-03-25 10:51:45 +00:00
account_journal_lock_date Translated using Weblate (Dutch) 2023-11-07 11:40:54 +00:00
account_journal_restrict_mode Translated using Weblate (Spanish) 2024-02-16 21:35:05 +00:00
account_loan [BOT] post-merge updates 2024-02-09 13:29:27 +00:00
account_lock_date_update Translated using Weblate (Dutch) 2024-01-30 12:59:06 +00:00
account_move_budget Translated using Weblate (Spanish) 2023-11-03 20:38:43 +00:00
account_move_fiscal_month Translated using Weblate (Portuguese (Brazil)) 2023-12-28 22:35:18 +00:00
account_move_fiscal_year Translated using Weblate (Spanish) 2023-09-21 16:44:33 +00:00
account_move_line_check_number Translated using Weblate (Spanish) 2024-02-16 21:35:05 +00:00
account_move_line_purchase_info Translated using Weblate (Portuguese (Brazil)) 2023-11-14 20:38:42 +00:00
account_move_line_sale_info Translated using Weblate (Spanish) 2023-09-04 18:36:04 +00:00
account_move_line_tax_editable [BOT] post-merge updates 2023-10-13 10:58:57 +00:00
account_move_name_sequence [BOT] post-merge updates 2023-11-21 19:27:29 +00:00
account_move_print Translated using Weblate (Turkish) 2023-10-09 09:17:42 +00:00
account_move_template Translated using Weblate (Italian) 2024-02-12 11:37:53 +00:00
account_netting Translated using Weblate (Italian) 2023-11-09 10:38:27 +00:00
account_partner_required Translated using Weblate (Spanish) 2023-11-06 20:36:56 +00:00
account_template_active [UPD] README.rst 2023-09-03 11:22:10 +00:00
account_usability Translated using Weblate (Turkish) 2023-10-28 13:25:07 +00:00
base_vat_optional_vies Translated using Weblate (Dutch) 2023-11-21 18:35:38 +00:00
setup [BOT] post-merge updates 2023-11-24 08:31:21 +00:00
.copier-answers.yml [IMP] update dotfiles 2023-10-27 18:07:13 +02:00
.editorconfig Initialize 16.0 branch 2022-10-03 19:47:06 +02:00
.eslintrc.yml [IMP] Update copier [CI Skip] 2023-10-03 11:13:00 +02:00
.flake8 Initialize 16.0 branch 2022-10-03 19:47:06 +02:00
.gitignore Initialize 16.0 branch 2022-10-03 19:47:06 +02:00
.isort.cfg Initialize 16.0 branch 2022-10-03 19:47:06 +02:00
.pre-commit-config.yaml [IMP] Update copier [CI Skip] 2023-10-03 11:13:00 +02:00
.prettierrc.yml Initialize 16.0 branch 2022-10-03 19:47:06 +02:00
.pylintrc [IMP] Update copier [CI Skip] 2023-10-03 11:13:00 +02:00
.pylintrc-mandatory [IMP] Update copier [CI Skip] 2023-10-03 11:13:00 +02:00
LICENSE Initialize 16.0 branch 2022-10-03 19:47:06 +02:00
README.md [BOT] post-merge updates 2024-02-16 08:44:28 +00:00
requirements.txt [IMP] account_financial_tools: Black, isort, prettier 2023-09-15 11:25:58 +02:00

Runboat Pre-commit Status Build Status codecov Translation Status

account-financial-tools

TODO: add repo description.

Available addons

addon version maintainers summary
account_account_tag_code 16.0.1.0.0 Add a code field to the accounts tags
account_asset_batch_compute 16.0.1.0.0 Add the possibility to compute assets in batch
account_asset_management 16.0.1.2.0 Assets Management
account_cash_deposit 16.0.1.2.0 Manage cash deposits and cash orders
account_chart_update 16.0.2.0.3 Wizard to update a company's account chart from a template
account_chart_update_l10n_eu_oss_oca 16.0.1.0.0 LoisRForgeFlow Account Chart update OSS OCA
account_fiscal_month 16.0.1.1.0 Provide a fiscal month date range type
account_fiscal_position_vat_check 16.0.1.1.0 Check VAT on invoice validation
account_fiscal_year 16.0.1.1.0 eLBati Create Account Fiscal Year
account_fiscal_year_auto_create 16.0.1.0.2 legalsylvain Automatically create new fiscal years, based on the datas of the last fiscal years
account_invoice_constraint_chronology 16.0.1.1.0 Account Invoice Constraint Chronology
account_journal_general_sequence 16.0.2.0.1 yajo Add configurable sequence to account moves, per journal
account_journal_lock_date 16.0.1.0.0 Lock each journal independently
account_journal_restrict_mode 16.0.1.0.0 Lock All Posted Entries of Journals.
account_loan 16.0.1.0.4 etobella Account Loan management
account_lock_date_update 16.0.1.0.1 Allow an Account adviser to update locking date without having access to all technical settings
account_move_budget 16.0.1.0.0 Create Accounting Budgets
account_move_fiscal_month 16.0.1.0.0 Display the fiscal month on journal entries/item
account_move_fiscal_year 16.0.1.0.0 Display the fiscal year on journal entries/item
account_move_line_check_number 16.0.1.0.1 ps-tubtim Add the check number in the journal items
account_move_line_purchase_info 16.0.1.0.0 Introduces the purchase order line to the journal items
account_move_line_sale_info 16.0.1.0.0 Introduces the purchase order line to the journal items
account_move_line_tax_editable 16.0.1.0.1 Allows to edit taxes on non-posted account move lines
account_move_name_sequence 16.0.1.1.7 alexis-via moylop260 frahikLV luisg123v Generate journal entry number from sequence
account_move_print 16.0.1.0.0 JordiBForgeFlow Adds the option to print Journal Entries
account_move_template 16.0.1.0.0 Templates for recurring Journal Entries
account_netting 16.0.1.0.0 Compensate AR/AP accounts from the same partner
account_partner_required 16.0.1.0.0 alexis-via Adds an option 'partner policy' on accounts
account_template_active 16.0.1.0.1 legalsylvain Allow to disable / enable account template items (tax, fiscal position, account)
account_usability 16.0.1.0.3 legalsylvain Adds missing menu entries for Account module and adds the option to enable Saxon Accounting
base_vat_optional_vies 16.0.1.1.0 Optional validation of VAT via VIES

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.