Issue for bi_advance_branch_pos (#2,215)
Status: OPEN
Date: 12/08/2021
ID: 2,215
S/O number: SO2020/1236663
Reviewer: Hiral Bhatt
Module Name: bi_advance_branch_pos
Version: 13.0
Tags:

Assigned to
Contact
Jay Pardasani
jay.pardasani@browseinfo.in

Description
Hi we got the following error while trying to install this module.


Error:

Odoo Server Error



Traceback (most recent call last):

File "/opt/odoo/odoo/tools/convert.py", line 713, in parse

self._tag_root(de)

File "/opt/odoo/odoo/tools/convert.py", line 675, in _tag_root

f(rec)

File "/opt/odoo/odoo/tools/convert.py", line 675, in _tag_root

f(rec)

File "/opt/odoo/odoo/tools/convert.py", line 528, in _tag_record

raise Exception("Cannot update missing record %r" % xid)

Exception: Cannot update missing record 'account.account_move_see_all'



During handling of the above exception, another exception occurred:



Traceback (most recent call last):

File "/opt/odoo/odoo/http.py", line 619, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/opt/odoo/odoo/http.py", line 309, in _handle_exception

raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

File "/opt/odoo/odoo/tools/pycompat.py", line 14, in reraise

raise value

File "/opt/odoo/odoo/http.py", line 664, in dispatch

result = self._call_function(**self.params)

File "/opt/odoo/odoo/http.py", line 345, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/opt/odoo/odoo/service/model.py", line 93, in wrapper

return f(dbname, *args, **kwargs)

File "/opt/odoo/odoo/http.py", line 338, in checked_call

result = self.endpoint(*a, **kw)

File "/opt/odoo/odoo/http.py", line 909, in __call__

return self.method(*args, **kw)

File "/opt/odoo/odoo/http.py", line 510, in response_wrap

response = f(*args, **kw)

File "/opt/odoo/addons/web/controllers/main.py", line 1323, in call_button

action = self._call_kw(model, method, args, kwargs)

File "/opt/odoo/addons/web/controllers/main.py", line 1311, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/opt/odoo/odoo/api.py", line 395, in call_kw

result = _call_kw_multi(method, model, args, kwargs)

File "/opt/odoo/odoo/api.py", line 382, in _call_kw_multi

result = method(recs, *args, **kwargs)

File "<decorator-gen-58>", line 2, in button_immediate_install

File "/opt/odoo/odoo/addons/base/models/ir_module.py", line 72, in check_and_log

return method(self, *args, **kwargs)

File "/opt/odoo/odoo/addons/base/models/ir_module.py", line 463, in button_immediate_install

return self._button_immediate_function(type(self).button_install)

File "/opt/odoo/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function

modules.registry.Registry.new(self._cr.dbname, update_module=True)

File "/opt/odoo/odoo/modules/registry.py", line 85, in new

odoo.modules.load_modules(registry._db, force_demo, status, update_module)

File "/opt/odoo/odoo/modules/loading.py", line 420, in load_modules

loaded_modules, update_module, models_to_check)

File "/opt/odoo/odoo/modules/loading.py", line 312, in load_marked_modules

perform_checks=perform_checks, models_to_check=models_to_check

File "/opt/odoo/odoo/modules/loading.py", line 222, in load_module_graph

load_data(cr, idref, mode, kind='data', package=package, report=report)

File "/opt/odoo/odoo/modules/loading.py", line 68, in load_data

tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)

File "/opt/odoo/odoo/tools/convert.py", line 737, in convert_file

convert_xml_import(cr, module, fp, idref, mode, noupdate, report)

File "/opt/odoo/odoo/tools/convert.py", line 804, in convert_xml_import

obj.parse(doc.getroot())

File "/opt/odoo/odoo/tools/convert.py", line 722, in parse

exc_info[2]

File "/opt/odoo/odoo/tools/pycompat.py", line 13, in reraise

raise value.with_traceback(tb)

File "/opt/odoo/odoo/tools/convert.py", line 713, in parse

self._tag_root(de)

File "/opt/odoo/odoo/tools/convert.py", line 675, in _tag_root

f(rec)

File "/opt/odoo/odoo/tools/convert.py", line 675, in _tag_root

f(rec)

File "/opt/odoo/odoo/tools/convert.py", line 528, in _tag_record

raise Exception("Cannot update missing record %r" % xid)

odoo.tools.convert.ParseError: "Cannot update missing record 'account.account_move_see_all'" while parsing /opt/data-dir/addons/13.0/branch/security/branch_security.xml:2, near

<odoo>

<data>



<record model="ir.module.category" id="module_branch_management">

<field name="name">Branch</field>

<field name="sequence">11</field>

</record>



<record id="group_branch_user" model="res.groups">

<field name="name">User</field>

<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>

<field name="category_id" ref="module_branch_management"/>

</record>



<record id="group_branch_user_manager" model="res.groups">

<field name="name">Manager</field>

<field name="category_id" ref="module_branch_management"/>

<field name="implied_ids" eval="[(4, ref('group_branch_user'))]"/>

<field name="users" eval="[(4, ref('base.user_root'))]"/>

</record>





<record id="res_branch_manager_rule" model="ir.rule">

<field name="name">Res Branch Manager</field>

<field name="model_id" ref="model_res_branch"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>





<record id="res_branch_user_rule" model="ir.rule">

<field name="name">Res Branch User</field>

<field name="model_id" ref="model_res_branch"/>

<field name="global" eval="True"/>

<field name="domain_force">[('id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="purchase_branch_manager_rule" model="ir.rule">

<field name="name">Purchase Branch Manager</field>

<field name="model_id" ref="model_purchase_order"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="purchase_branch_rule" model="ir.rule">

<field name="name">Purchase Branch User</field>

<field name="model_id" ref="model_purchase_order"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="sale.sale_order_personal_rule" model="ir.rule">

<field name="name">Personal Orders</field>

<field ref="model_sale_order" name="model_id"/>

<field name="domain_force">['|',('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>

</record>



<record id="sale.sale_order_see_all" model="ir.rule">

<field name="name">All Orders</field>

<field ref="model_sale_order" name="model_id"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/>

</record>





<record id="picking_branch_manager_rule" model="ir.rule">

<field name="name">Picking Branch Manager</field>

<field name="model_id" ref="model_stock_picking"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="picking_branch_rule" model="ir.rule">

<field name="name">Picking Branch</field>

<field name="model_id" ref="model_stock_picking"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="warehouse_branch_manager_rule" model="ir.rule">

<field name="name">Warehouse Branch Manager</field>

<field name="model_id" ref="stock.model_stock_warehouse"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="warehouse_branch_rule" model="ir.rule">

<field name="name">Warehouse Branch</field>

<field name="model_id" ref="stock.model_stock_warehouse"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="location_branch_manager_rule" model="ir.rule">

<field name="name">Location Branch Manager</field>

<field name="model_id" ref="model_stock_location"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="location_branch_rule" model="ir.rule">

<field name="name">Location Branch</field>

<field name="model_id" ref="model_stock_location"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="picking_type_branch_manager_rule" model="ir.rule">

<field name="name">Picking Type Branch Manager</field>

<field name="model_id" ref="stock.model_stock_picking_type"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="picking_type_branch_rule" model="ir.rule">

<field name="name">Picking Type Branch</field>

<field name="model_id" ref="stock.model_stock_picking_type"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="stock_quant_branch_manager_rule" model="ir.rule">

<field name="name">Stock Quant Branch Manager</field>

<field name="model_id" ref="stock.model_stock_quant"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="stock_quant_branch_rule" model="ir.rule">

<field name="name">Stock Quant Branch</field>

<field name="model_id" ref="stock.model_stock_quant"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('location_id.branch_id','=',False),('location_id.branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="stock_move_line_branch_manager_rule" model="ir.rule">

<field name="name">Stock Move Line Branch Manager</field>

<field name="model_id" ref="stock.model_stock_move_line"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="stock_move_line_branch_rule" model="ir.rule">

<field name="name">Stock Move Line Branch</field>

<field name="model_id" ref="stock.model_stock_move_line"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('location_dest_id.branch_id','=',False),('location_dest_id.branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="warehouse_branch_manager_rule" model="ir.rule">

<field name="name">Warehouse Branch Manager</field>

<field name="model_id" ref="model_stock_warehouse"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="warehouse_branch_rule" model="ir.rule">

<field name="name">Warehouse Branch</field>

<field name="model_id" ref="model_stock_warehouse"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="product_template_branch_manager_rule" model="ir.rule">

<field name="name">Product Template Branch Manager</field>

<field name="model_id" ref="model_product_template"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="product_template_branch_rule" model="ir.rule">

<field name="name">Product Template Branch</field>

<field name="model_id" ref="model_product_template"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="product_product_branch_manager_rule" model="ir.rule">

<field name="name">Product Product Branch Manager</field>

<field name="model_id" ref="product.model_product_product"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="product_product_branch_rule" model="ir.rule">

<field name="name">Product Product Branch</field>

<field name="model_id" ref="product.model_product_product"/>

<field name="global" eval="True"/>

<field name="domain_force">['|',('product_tmpl_id.branch_id','=',False),('product_tmpl_id.branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="stock_inventory_branch_rule_manager" model="ir.rule">

<field name="name">Inventory Adjustments Branch Manager</field>

<field name="model_id" ref="model_stock_inventory"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="stock_inventory_branch_rule_user" model="ir.rule">

<field name="name">Inventory Adjustments Branch User</field>

<field name="model_id" ref="model_stock_inventory"/>

<field name="global" eval="True"/>

<field name="domain_force">['|', ('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="account_move_branch_rule_manager" model="ir.rule">

<field name="name">Account Move Branch Manager</field>

<field name="model_id" ref="model_account_move"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="account_move_branch_rule_user" model="ir.rule">

<field name="name">Account Move Branch User</field>

<field name="model_id" ref="model_account_move"/>

<field name="global" eval="True"/>

<field name="domain_force">['|', ('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



<record id="account.account_move_see_all" model="ir.rule">

<field name="name">All Journal Entries</field>

<field ref="model_account_move" name="model_id"/>

<field name="domain_force">[(1, '=', 1),'|', ('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('account.group_account_invoice'))]"/>

</record>





<record id="sale.account_move_personal_rule" model="ir.rule">

<field name="name">Personal Invoice</field>

<field ref="model_account_move" name="model_id"/>

<field name="domain_force">['|','|',('type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')),('invoice_user_id', '=', user.id), ('invoice_user_id', '=', False),('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>

</record>



<record id="sale.account_move_see_all" model="ir.rule">

<field name="name">All Invoices</field>

<field ref="model_account_move" name="model_id"/>

<field name="domain_force">['|',(1,'=',1),('type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]</field>

<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/>

</record>



<record id="sale.account_move_line_personal_rule" model="ir.rule">

<field name="name">Personal Invoice Lines</field>

<field ref="model_account_move_line" name="model_id"/>

<field name="domain_force">['|','|',('move_id.type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')),('move_id.invoice_user_id', '=', user.id), ('move_id.invoice_user_id', '=', False),('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>

</record>



<record id="sale.account_move_line_see_all" model="ir.rule">

<field name="name">All Invoices Lines</field>

<field ref="model_account_move_line" name="model_id"/>

<field name="domain_force">['|',(1,'=',1),('move_id.type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]</field>

<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/>

</record>





<record id="purchase.purchase_user_account_move_line_rule" model="ir.rule">

<field name="name">Purchase User Account Move Line</field>

<field name="model_id" ref="account.model_account_move_line"/>

<field name="domain_force">['|',('move_id.type', 'in', ('in_invoice', 'in_refund', 'in_receipt')),('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('purchase.group_purchase_user'))]"/>

</record>

<record id="purchase.purchase_user_account_move_rule" model="ir.rule">

<field name="name">Purchase User Account Move</field>

<field name="model_id" ref="account.model_account_move"/>

<field name="domain_force">['|',('type', 'in', ('in_invoice', 'in_refund', 'in_receipt')),('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('purchase.group_purchase_user'))]"/>

</record>









<record id="account_payment_branch_rule_manager" model="ir.rule">

<field name="name">Account Payment Branch Manager</field>

<field name="model_id" ref="model_account_payment"/>

<field name="global" eval="True"/>

<field name="domain_force">[(1,'=',1)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user_manager'))]"/>

</record>



<record id="account_payment_branch_rule_user" model="ir.rule">

<field name="name">Account Payment Branch User</field>

<field name="model_id" ref="model_account_payment"/>

<field name="global" eval="True"/>

<field name="domain_force">['|', ('branch_id','=',False),('branch_id','=',user.branch_id.id)]</field>

<field name="groups" eval="[(4, ref('branch.group_branch_user'))]"/>

</record>



</data>



</odoo>

Please help us with this issue

test database: https://genergeticopg.dappdev.mx/

admin@energeticospg.com
Test.123

not possible to install any of the four branch modules.

Message and communication history