trytond-patches/issue3932.diff
2023-01-04 16:05:47 +01:00

60 lines
2.5 KiB
Diff

diff -r d5e2bdf73e16 account.xml
--- a/tryton/modules/account/account.xml Sun Apr 07 19:50:02 2019 +0200
+++ b/tryton/modules/account/account.xml Fri Apr 12 21:43:14 2019 +0200
@@ -747,5 +747,22 @@
<field name="model">account.aged_balance,-1</field>
<field name="action" ref="report_aged_balance"/>
</record>
+
+
+ <record model="ir.rule.group" id="rule_group_account_journal_period">
+ <field name="name">Account Journal Period</field>
+ <field name="model" search="[('model', '=', 'account.journal.period')]"/>
+ <field name="global_p" eval="True"/>
+ </record>
+ <record model="ir.rule" id="rule_account_journal_period">
+ <field name="domain"
+ eval="[('period.company', 'in', Eval('companies', []))]"
+ pyson="1"/>
+ <field name="rule_group" ref="rule_group_account_journal_period"/>
+ </record>
+
+
+
+
</data>
</tryton>
diff -r d5e2bdf73e16 move.xml
--- a//tryton/modules/account/move.xml Sun Apr 07 19:50:02 2019 +0200
+++ b//tryton/modules/account/move.xml Fri Apr 12 21:43:14 2019 +0200
@@ -411,5 +411,30 @@
<field name="report_name">account.move.general_journal</field>
<field name="report">account/general_journal.fodt</field>
</record>
+
+ <!-- ir rule account move and account move line by company -->
+ <record model="ir.rule.group" id="rule_group_account_move">
+ <field name="name">Account Move Grup</field>
+ <field name="model" search="[('model', '=', 'account.move')]"/>
+ <field name="global_p" eval="True"/>
+ </record>
+ <record model="ir.rule" id="rule_account_move1">
+ <field name="domain"
+ eval="[('company', 'in', Eval('companies', []))]"
+ pyson="1"/>
+ <field name="rule_group" ref="rule_group_account_move"/>
+ </record>
+
+ <record model="ir.rule.group" id="rule_group_account_move_line">
+ <field name="name">Account Move Line Grup</field>
+ <field name="model" search="[('model', '=', 'account.move.line')]"/>
+ <field name="global_p" eval="True"/>
+ </record>
+ <record model="ir.rule" id="rule_account_move_line1">
+ <field name="domain"
+ eval="[('move.company', 'in', Eval('companies', []))]"
+ pyson="1"/>
+ <field name="rule_group" ref="rule_group_account_move_line"/>
+ </record>
</data>
</tryton>