mirror of
https://github.com/NaN-tic/trytond-party_company.git
synced 2023-12-14 03:32:57 +01:00
Set account asset domain rule from user company (not companies)
This commit is contained in:
parent
8de78f4a0a
commit
86ff527144
12
account_asset.xml
Normal file
12
account_asset.xml
Normal 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>
|
|
@ -11,6 +11,7 @@ extras_depend:
|
|||
commission_manager
|
||||
xml:
|
||||
account.xml
|
||||
account_asset.xml
|
||||
activity.xml
|
||||
bank.xml
|
||||
carrier.xml
|
||||
|
|
Loading…
Reference in a new issue