Add analytic_account rules by company
This commit is contained in:
parent
2070ceab60
commit
b80dcbba1d
|
@ -0,0 +1,35 @@
|
|||
diff -r 3b0313a104c2 trytond/trytond/modules/analytic_account/account.xml
|
||||
--- a/trytond/trytond/modules/analytic_account/account.xml Mon May 21 20:06:30 2018 +0200
|
||||
+++ b/trytond/trytond/modules/analytic_account/account.xml Mon Jan 21 15:51:48 2019 +0100
|
||||
@@ -160,5 +160,14 @@
|
||||
<field name="type">tree</field>
|
||||
<field name="name">analytic_account_entry_tree</field>
|
||||
</record>
|
||||
+
|
||||
+ <record model="ir.rule.group" id="rule_group_account">
|
||||
+ <field name="model" search="[('model', '=', 'analytic_account.account')]"/>
|
||||
+ <field name="global_p" eval="True"/>
|
||||
+ </record>
|
||||
+ <record model="ir.rule" id="rule_account1">
|
||||
+ <field name="domain" eval="[('company', '=', Eval('user', {}).get('company', None))]" pyson="1"/>
|
||||
+ <field name="rule_group" ref="rule_group_account"/>
|
||||
+ </record>
|
||||
</data>
|
||||
</tryton>
|
||||
diff -r 3b0313a104c2 trytond/trytond/modules/analytic_account/line.xml
|
||||
--- a/trytond/trytond/modules/analytic_account/line.xml Mon May 21 20:06:30 2018 +0200
|
||||
+++ b/trytond/trytond/modules/analytic_account/line.xml Mon Jan 21 15:51:48 2019 +0100
|
||||
@@ -95,5 +95,13 @@
|
||||
<menuitem parent="account.menu_processing"
|
||||
action="act_move_line_form_completion" id="menu_completion"/>
|
||||
|
||||
+ <record model="ir.rule.group" id="rule_group_account_line">
|
||||
+ <field name="model" search="[('model', '=', 'analytic_account.line')]"/>
|
||||
+ <field name="global_p" eval="True"/>
|
||||
+ </record>
|
||||
+ <record model="ir.rule" id="rule_account_line1">
|
||||
+ <field name="domain" eval="[('company', '=', Eval('user', {}).get('company', None))]" pyson="1"/>
|
||||
+ <field name="rule_group" ref="rule_group_account_line"/>
|
||||
+ </record>
|
||||
</data>
|
||||
</tryton>
|
1
series
1
series
|
@ -9,6 +9,7 @@ issue7276.diff # [account] Allow to edit maturity date and tax lines
|
|||
issue6253.diff # [account_invoice] add invoice type criteria
|
||||
issue4506.diff # [account_invoice] Add credit invoices keyword from account.invoice
|
||||
|
||||
analytic_account.diff # [analytic_account] Add analytic_account rules by company
|
||||
issue4030.diff # [analytic_account] Not selected root accounts in analytic account lines
|
||||
|
||||
purchase_request.diff # [purchase_request] as shippment_date it's not required we need to ensure operation could be done
|
||||
|
|
Loading…
Reference in New Issue