summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/users.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-09-29 08:54:16 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-09-29 08:54:16 +0700
commit43a8e9a7f2d6ba127de9bcd40925b838b1f5eaeb (patch)
treea6531f8e798663efd442f42093d4549a52391d04 /indoteknik_custom/models/users.py
parentac37a854362dbaaf8a88431ea5ab077a37f3c5f9 (diff)
Update __manifest__.py, __init__.py, and 3 more files...
Diffstat (limited to 'indoteknik_custom/models/users.py')
-rw-r--r--indoteknik_custom/models/users.py10
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')