Skip to Content
Menu
This question has been flagged
3 Replies
1452 Views

Hello

I am using Odoo16 enterprise. I want to make the tree view of journal entries multi-editable so I can select multiple records and edit at the same time

I opened the studio and I selected mass editing but it gives me the following error:

Error while validating view near: Field 'company_id' used in domain of field 'partner_id' ([('company_id', 'in', [company_id, False])]) is restricted to the group(s) base.group_multi_company.


Can anybody help me please

Avatar
Discard
Author Best Answer

I am not using multi-company. I just created new database without data and I tried to change the journal entries tree to be multi-edit so it gives me this error. please try by yourself you will find the same error

Avatar
Discard
Best Answer

Hi,
The "multi-edit" functionality in Odoo typically refers to the ability to edit multiple records simultaneously. This feature is designed to improve efficiency by allowing users to make changes to multiple records without having to open and edit each one individually.

It's very easy to multi-edit on any list view.1. Go to Accounting -> Journal entries 2. You can go to view and edit listview view architecture and make it as multi_edit="1".


<tree string="Journal Entries" sample="1" decoration-info="state == 'draft'" muti_edit ="1" expand="context.get('expand', False)">


Hope it helps

Avatar
Discard
Author

Could you please write the complete code to inherit the treeview and make it multiedit

Best Answer

Hi Magdy,

This seems like an access error, make sure you have the Multi-company access. 

Inside setting -> users, select the user. Add the required companies in the Allowed companies and now try mass editing.


Thanks

Avatar
Discard