Commit 7fb618f7 authored by Javier Vega's avatar Javier Vega 🌮
Browse files

[FIX] multicompany issue due to old rule

parent a1352e69
Pipeline #89580 failed with stages
in 20 minutes and 33 seconds
......@@ -6,7 +6,7 @@
'summary': '''
Use Xunnel Bank to retrieve bank statements.
'version': '',
'version': '',
'author': 'Jarsa Sistemas,Vauxoo',
'category': 'Accounting',
'website': '',
......@@ -26,7 +26,6 @@
def delete_providers_rules(cr):
UPDATE ir_model_data set noupdate='f'
WHERE module='account_xunnel'
def migrate(cr, version):
if not version:
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<!-- TODO remove this rules when PR is merged-->
<record model="ir.rule" id="account_online_sync_provider_rule">
<field name="name">Account online provider company rule</field>
<field name="model_id" ref="model_account_online_provider"/>
<field name="global" eval="True"/>
<field name="domain_force">[('company_id','child_of',[])]</field>
<record model="ir.rule" id="account_online_sync_journal_rule">
<field name="name">Account online journal company rule</field>
<field name="model_id" ref="model_account_online_journal"/>
<field name="global" eval="True"/>
<field name="domain_force">[('account_online_provider_id.company_id','child_of',[])]</field>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment