diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-10-05 15:23:17 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-10-05 15:23:17 +0700 |
| commit | 06a5c0c589a00c036684285766eeddbdd0c39fcb (patch) | |
| tree | 434c4bda203401f861ea39a01e8643ae4d38ac6d /indoteknik_custom/models/users.py | |
| parent | 14cb30c3f2fb8b15baaf32ab9fca7bb9bda73845 (diff) | |
| parent | 3abd0ca6790b9a278f9ddd52b063691b99d6916c (diff) | |
Merge branch 'master' of bitbucket.org:altafixco/indoteknik-addons
# Conflicts:
# indoteknik_custom/models/__init__.py
Diffstat (limited to 'indoteknik_custom/models/users.py')
| -rw-r--r-- | indoteknik_custom/models/users.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indoteknik_custom/models/users.py b/indoteknik_custom/models/users.py new file mode 100644 index 00000000..bc56fe54 --- /dev/null +++ b/indoteknik_custom/models/users.py @@ -0,0 +1,10 @@ +from odoo import fields, models, api, _ +from odoo.exceptions import AccessError, UserError, ValidationError + + +class Users(models.Model): + _inherit = 'res.users' + + is_purchasing_manager = fields.Boolean(String='Purchasing Manager', help='Berhak melakukan Approval PO') + is_sales_manager = fields.Boolean(String='Sales Manager', help='Berhak melakukan Approval SO dengan margin 15-25') + is_leader = fields.Boolean(String='Leader', help='Berhak Approval SO Margin < 15 dan Approval PO') |
