[FIX] portal_sale: Portal users can read taxes groups

If a portal can read an `account.tax`,
there is no reason he cannot read an `account.tax.group`.

Without this read access on the tax groups, a portal
user cannot print the invoice report from the
portal, due to the `o._get_tax_amount_by_group()` call
in the invoice report.

opw-668973
This commit is contained in:
Denis Ledoux
2016-02-08 17:25:10 +01:00
parent 0b7990cbce
commit 58bc4842e0
@@ -8,6 +8,7 @@ access_account_journal,account.journal,account.model_account_journal,base.group_
access_product_list,product.pricelist,product.model_product_pricelist,base.group_portal,1,0,0,0
access_res_partner,res.partner,base.model_res_partner,base.group_portal,1,0,0,0
access_account_tax,account.tax,account.model_account_tax,base.group_portal,1,0,0,0
access_account_tax_group,account.tax.group,account.model_account_tax_group,base.group_portal,1,0,0,0
access_res_partner_category,res.partner.category,base.model_res_partner_category,base.group_portal,1,0,0,0
access_product_attribute_portal,product.attribute portal,product.model_product_attribute,base.group_portal,1,0,0,0
access_product_attribute_value_portal,product.attribute value portal,product.model_product_attribute_value,base.group_portal,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
8 access_product_list product.pricelist product.model_product_pricelist base.group_portal 1 0 0 0
9 access_res_partner res.partner base.model_res_partner base.group_portal 1 0 0 0
10 access_account_tax account.tax account.model_account_tax base.group_portal 1 0 0 0
11 access_account_tax_group account.tax.group account.model_account_tax_group base.group_portal 1 0 0 0
12 access_res_partner_category res.partner.category base.model_res_partner_category base.group_portal 1 0 0 0
13 access_product_attribute_portal product.attribute portal product.model_product_attribute base.group_portal 1 0 0 0
14 access_product_attribute_value_portal product.attribute value portal product.model_product_attribute_value base.group_portal 1 0 0 0