Set account asset domain rule from user company (not companies)

This commit is contained in:
Raimon Esteve 2018-02-19 16:17:33 +01:00
parent 8de78f4a0a
commit 86ff527144
2 changed files with 13 additions and 0 deletions

12
account_asset.xml Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data depends="account_asset">
<record model="ir.rule" id="account_asset.rule_asset_line1">
<field name="domain"
eval="[('company', '=', Eval('user', {}).get('company', None))]"
pyson="1"/>
</record>
</data>
</tryton>

View file

@ -11,6 +11,7 @@ extras_depend:
commission_manager
xml:
account.xml
account_asset.xml
activity.xml
bank.xml
carrier.xml