Skip to content

Commit

Permalink
[14.0][MIG] 10n_it_withholding_tax - fixes - da fare lo squash col pr…
Browse files Browse the repository at this point in the history
…ecedente

Commit separato solo per agevolare il merge da parte di chi fa il
tracking del branch durante lo sviluppo.
  • Loading branch information
TheMule71 committed Dec 18, 2020
1 parent 2d43bee commit e56da14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions l10n_it_withholding_tax/models/withholding_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ def _default_wt_journal(self):
"res.company",
string="Company",
required=True,
default=lambda self: self.env["res.company"]._company_default_get(
"account.account"
),
default=lambda self: self.env.company,
)
name = fields.Char("Name", size=256, required=True)
code = fields.Char("Code", size=256, required=True)
Expand Down
6 changes: 3 additions & 3 deletions l10n_it_withholding_tax/security/security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<field name="global" eval="True" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
>['|',('company_id','=',False),('company_id','in',company_ids)]</field>
</record>

<record id="withholding_tax_statement_comp_rule" model="ir.rule">
Expand All @@ -18,7 +18,7 @@
<field name="global" eval="True" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
>['|',('company_id','=',False),('company_id','in',company_ids)]</field>
</record>

<record id="withholding_tax_move_comp_rule" model="ir.rule">
Expand All @@ -27,7 +27,7 @@
<field name="global" eval="True" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
>['|',('company_id','=',False),('company_id','in',company_ids)]</field>
</record>

</data>
Expand Down

0 comments on commit e56da14

Please sign in to comment.