purchase_custom_visibility/models/res_users.py

16 lines
469 B
Python

# -*- coding: utf-8 -*-
from odoo import models, fields
class ResUsers(models.Model):
_inherit = 'res.users'
hide_confirm_order_send_rfq = fields.Boolean(
string="Hide Send RFQ",
help="Hide Send RFQ button on Purchase Order form for this user."
)
hide_purchase_prices = fields.Boolean(
string="Hide Price, Subtotal & Total",
help="Hide Unit Price, Subtotal, and Totals on Purchase Order form for this user."
)