a16a456511
Steps to reproduce the problem: * Go to assets view * Group by profile * Unfold a group and click on an asset * Click on "Journal Entries" smart-button * Go back to the asset list * Click again on the same asset (or another). * Click on "Journal Entries" smart-button Current behavior: Error saying "KeyError: 'profile_id'" Expected behavior: No error The cause for this is that Odoo stores in the context the key `group_by` with the value `profile_id` in the specified chain of steps. That context entry is used for grouping records in the list, and system tries to group the journal entries also by that field, which doesn't exists in the other model, and thus the error. We avoided it copying the context to be passes and leaving out that entry.
29 lines
971 B
Python
29 lines
971 B
Python
# Copyright 2009-2018 Noviat
|
|
# Copyright 2019 Tecnativa - Pedro M. Baeza
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
{
|
|
"name": "Assets Management",
|
|
"version": "13.0.1.0.1",
|
|
"license": "AGPL-3",
|
|
"depends": ["account"],
|
|
"excludes": ["account_asset"],
|
|
"external_dependencies": {"python": ["python-dateutil"]},
|
|
"author": "Noviat, Odoo Community Association (OCA)",
|
|
"website": "https://github.com/OCA/account-financial-tools",
|
|
"category": "Accounting & Finance",
|
|
"data": [
|
|
"security/account_asset_security.xml",
|
|
"security/ir.model.access.csv",
|
|
"wizard/account_asset_compute.xml",
|
|
"wizard/account_asset_remove.xml",
|
|
"views/account_account.xml",
|
|
"views/account_asset.xml",
|
|
"views/account_asset_group.xml",
|
|
"views/account_asset_profile.xml",
|
|
"views/account_move.xml",
|
|
"views/account_move_line.xml",
|
|
"views/menuitem.xml",
|
|
],
|
|
}
|