Skip to content

Commit

Permalink
Merge d02ac47 into 551ce1a
Browse files Browse the repository at this point in the history
  • Loading branch information
Williams Estrada [Vauxoo] authored Aug 19, 2020
2 parents 551ce1a + d02ac47 commit cdb053b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default_warehouse_from_sale_team/security/ir_rule.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<record id="rule_default_warehouse_journal" model="ir.rule">
<field name="name">Limited access to journal (filtered by sale teams)</field>
<field name="model_id" search="[('model','=','account.journal')]" model="ir.model"/>
<field name="domain_force">[('id', 'in', [journal.id for team in user.sale_team_ids for journal in team.journal_team_ids])]</field>
<field name="domain_force">[('id', 'in', [journal.id user.sale_team_ids.mapped('journal_team_ids')])]</field>
<field name="groups" eval="[(6, 0, [ref('default_warehouse_from_sale_team.group_limited_default_warehouse_journal')])]"/>
</record>
<record id="rule_default_warehouse_journal_all" model="ir.rule">
Expand Down

0 comments on commit cdb053b

Please sign in to comment.