-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsecurity.go
More file actions
45 lines (41 loc) · 1.97 KB
/
security.go
File metadata and controls
45 lines (41 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2017 NDP Systèmes. All Rights Reserved.
// See LICENSE file for full licensing details.
package product
import (
"github.com/hexya-addons/base"
"github.com/hexya-erp/hexya/src/models/security"
"github.com/hexya-erp/pool/h"
)
var (
// GroupSalePriceList enables the "Sales Pricelists" feature
GroupSalePriceList *security.Group
// GroupPricelistItem enables the "Manage Pricelist Items" feature
GroupPricelistItem *security.Group
// GroupProductPricelist enables the "Pricelists On Product" feature
GroupProductPricelist *security.Group
// GroupUom enables the "Manage Multiple Units of Measure" feature
GroupUom *security.Group
// GroupStockPackaging enables the "Manage Product Packaging" feature
GroupStockPackaging *security.Group
// GroupMRPProperties enables the "Manage Properties of Product" feature
GroupMRPProperties *security.Group
// GroupProductVariant enables the "Manage Product Variants" feature
GroupProductVariant *security.Group
)
func init() {
h.ProductUomCategory().Methods().Load().AllowGroup(base.GroupUser)
h.ProductUom().Methods().Load().AllowGroup(base.GroupUser)
h.ProductCategory().Methods().Load().AllowGroup(base.GroupUser)
h.ProductTemplate().Methods().Load().AllowGroup(base.GroupUser)
h.ProductPackaging().Methods().Load().AllowGroup(base.GroupUser)
h.ProductSupplierinfo().Methods().Load().AllowGroup(base.GroupUser)
h.ProductPricelist().Methods().Load().AllowGroup(base.GroupUser)
h.ProductPricelistItem().Methods().Load().AllowGroup(base.GroupUser)
h.ProductPricelist().Methods().Load().AllowGroup(base.GroupPartnerManager)
h.ProductProduct().Methods().Load().AllowGroup(base.GroupUser)
h.ProductPriceHistory().Methods().Load().AllowGroup(base.GroupUser)
h.ProductAttribute().Methods().Load().AllowGroup(base.GroupUser)
h.ProductAttributeValue().Methods().Load().AllowGroup(base.GroupUser)
h.ProductAttributePrice().Methods().Load().AllowGroup(base.GroupUser)
h.ProductAttributeLine().Methods().Load().AllowGroup(base.GroupUser)
}