Jairo Llopis 36c98e0ec6 [FIX] account_usability: broken account.tax.group search
Before this patch, when going to `account.tax.group` search and searching for "7", we got this exception:

```
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 368, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 357, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 919, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 544, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/auto/addons/web/controllers/main.py", line 1284, in search_read
    return self.do_search_read(model, fields, offset, limit, domain, sort)
  File "/opt/odoo/auto/addons/web/controllers/main.py", line 1303, in do_search_read
    return Model.web_search_read(domain, fields, offset=offset, limit=limit, order=sort)
  File "/opt/odoo/auto/addons/web/models/models.py", line 62, in web_search_read
    records = self.search_read(domain, fields, offset=offset, limit=limit, order=order)
  File "/opt/odoo/custom/src/odoo/odoo/models.py", line 5044, in search_read
    records = self.search(domain or [], offset=offset, limit=limit, order=order)
  File "/opt/odoo/custom/src/odoo/odoo/models.py", line 1810, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/opt/odoo/custom/src/odoo/odoo/models.py", line 4711, in _search
    query = self._where_calc(args)
  File "/opt/odoo/custom/src/odoo/odoo/models.py", line 4467, in _where_calc
    return expression.expression(domain, self).query
  File "/opt/odoo/custom/src/odoo/odoo/osv/expression.py", line 442, in __init__
    self.parse()
  File "/opt/odoo/custom/src/odoo/odoo/osv/expression.py", line 957, in parse
    expr, params = self.__leaf_to_sql(leaf, model, alias)
  File "/opt/odoo/auto/addons/base_search_fuzzy/hooks.py", line 22, in _wrapper
    return original(self, leaf, model, alias)
  File "/opt/odoo/custom/src/odoo/odoo/osv/expression.py", line 1081, in __leaf_to_sql
    params = [field.convert_to_column(right, model, validate=False)]
  File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1329, in convert_to_column
    return int(value or 0)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 652, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
ValueError: invalid literal for int() with base 10: '7%'
```

The same happened with any other value.

@moduon MT-2875
2023-05-08 10:47:50 +01:00
2023-02-08 08:31:52 +00:00
2023-02-09 16:56:44 +00:00
2022-04-04 11:19:32 +00:00
2022-05-05 10:34:47 +00:00
2023-03-08 12:32:26 +00:00
2021-10-17 16:32:50 +02:00
2022-03-30 21:38:26 +02:00
2021-10-17 16:32:50 +02:00
2022-11-03 17:34:52 +01:00
2021-10-17 16:32:50 +02:00
2021-10-17 16:32:50 +02:00
2022-11-03 17:34:52 +01:00
2022-11-03 17:34:52 +01:00
2021-10-17 16:32:50 +02:00
2023-05-03 14:27:05 +00:00

Runboat Pre-commit Status Build Status codecov Translation Status

account-financial-tools

TODO: add repo description.

Available addons

addon version maintainers summary
account_asset_low_value 15.0.1.0.0 kittiu Assets Management - Low Value Asset
account_asset_management 15.0.1.0.2 Assets Management
account_asset_management_menu 15.0.1.0.0 Assets Management Menu
account_asset_number 15.0.1.0.0 Assets Number
account_balance_line 15.0.1.1.0 Display balance totals in move line view
account_chart_update 15.0.1.2.0 Wizard to update a company's account chart from a template
account_chart_update_l10n_eu_oss 15.0.1.0.0 LoisRForgeFlow Account Chart update OSS
account_chart_update_l10n_eu_oss_oca 15.0.1.0.0 LoisRForgeFlow Account Chart update OSS OCA
account_check_deposit 15.0.1.0.0 Manage deposit of checks to the bank
account_cost_center 15.0.1.0.0 Cost center information for invoice lines
account_fiscal_position_vat_check 15.0.1.0.1 Check VAT on invoice validation
account_fiscal_year 15.0.1.2.0 eLBati Create Account Fiscal Year
account_invoice_constraint_chronology 15.0.1.0.1 Account Invoice Constraint Chronology
account_journal_general_sequence 15.0.1.0.5 yajo Add configurable sequence to account moves, per journal
account_journal_lock_date 15.0.1.0.1 Lock each journal independently
account_lock_date_update 15.0.1.0.1 Allow an Account adviser to update locking date without having access to all technical settings
account_lock_to_date 15.0.1.0.0 Allows to set an account lock date in the future.
account_maturity_date_default 15.0.1.0.0 victoralmau Account Maturity Date Default
account_move_budget 15.0.1.0.0 Create Accounting Budgets
account_move_fiscal_year 15.0.1.0.1 Display the fiscal year on journal entries/item
account_move_force_removal 15.0.1.1.0 Allow force removal account moves
account_move_line_menu 15.0.1.0.0 Adds a Journal Items menu
account_move_line_purchase_info 15.0.1.1.1 Introduces the purchase order line to the journal items
account_move_line_residual 15.0.1.0.1 Display residual amount in move line view
account_move_line_sale_info 15.0.1.0.3 Introduces the purchase order line to the journal items
account_move_line_tax_editable 15.0.1.0.1 Allows to edit taxes on non-posted account move lines
account_move_name_sequence 15.0.1.2.1 alexis-via moylop260 frahikLV Generate journal entry number from sequence
account_move_print 15.0.1.0.0 JordiBForgeFlow Adds the option to print Journal Entries
account_move_template 15.0.1.0.0 Templates for recurring Journal Entries
account_move_total_by_account_internal_group 15.0.1.0.0 Adds Totals by Account Internal Group in Journal Entries
account_netting 15.0.1.0.0 Compensate AR/AP accounts from the same partner
account_usability 15.0.1.0.1 legalsylvain Adds missing menu entries for Account module and adds the option to enable Saxon Accounting
base_vat_optional_vies 15.0.1.0.3 Optional validation of VAT via VIES
product_category_tax 15.0.1.1.0 Configure taxes in the product category

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.

Description
Odoo Accountant Financial Tools and Utils
Readme 117 MiB
Languages
Python 61.9%
HTML 38.1%