Skip to content

Commit

Permalink
[UPD] ssi_voucher_invoice_settlement
Browse files Browse the repository at this point in the history
  • Loading branch information
Miftahussalam committed Mar 2, 2024
1 parent 81c3847 commit 3c03c37
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions ssi_voucher_invoice_settlement/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Contributors

* Andhitia Rama <[email protected]>
* Michael Viriyananda <[email protected]>
* Miftahussalam <[email protected]>

Maintainer
----------
Expand Down
22 changes: 22 additions & 0 deletions ssi_voucher_invoice_settlement/security/ir_rule_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,26 @@
<field name="perm_read" eval="1" />
<field name="perm_create" eval="1" />
</record>
<record id="invoice_settlement_companies_rule" model="ir.rule">
<field
name="name"
>Invoice Settlement - Responsible to company and all child companies data</field>
<field name="model_id" ref="model_account_invoice_settlement" />
<field name="groups" eval="[(4, ref('invoice_settlement_company_child_group'))]" />
<field name="domain_force">[('company_id','in',user.company_ids.ids)]</field>
<field name="perm_unlink" eval="1" />
<field name="perm_write" eval="1" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="1" />
</record>
<record id="invoice_settlement_all_rule" model="ir.rule">
<field name="name">Invoice Settlement - All</field>
<field name="model_id" ref="model_account_invoice_settlement" />
<field name="groups" eval="[(4, ref('invoice_settlement_all_group'))]" />
<field name="domain_force">[(1,'=',1)]</field>
<field name="perm_unlink" eval="1" />
<field name="perm_write" eval="1" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="1" />
</record>
</odoo>
26 changes: 26 additions & 0 deletions ssi_voucher_invoice_settlement/security/res_group_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,30 @@
/>
</record>

<record id="invoice_settlement_company_child_group" model="res.groups">
<field name="name">Company and All Child Companies</field>
<field
name="category_id"
ref="invoice_settlement_data_ownership_module_category"
/>
<field name="implied_ids" eval="[(4, ref('invoice_settlement_company_group'))]" />
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>

<record id="invoice_settlement_all_group" model="res.groups">
<field name="name">All</field>
<field
name="category_id"
ref="invoice_settlement_data_ownership_module_category"
/>
<field name="implied_ids" eval="[(4, ref('invoice_settlement_company_child_group'))]" />
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>

</odoo>

0 comments on commit 3c03c37

Please sign in to comment.