Active rule in bank and search bank inactives

This commit is contained in:
Raimon Esteve 2017-05-29 10:35:29 +02:00
parent edbd0e8635
commit 430b73fdd0
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rule_party1">
<field name="domain"
eval="['OR', ('company', 'in', Eval('user', {}).get('companies', [])), ('company', '=', None)]"
eval="['OR', ('company', 'in', Eval('user', {}).get('companies', [])), ('company', '=', None), ('active', '=', False)]"
pyson="1"/>
<field name="rule_group" ref="rule_group_party"/>
</record>

View File

@ -9,5 +9,6 @@ extras_depend:
carrier
xml:
activity.xml
bank.xml
carrier.xml
party.xml