From c347e6f4d1461a2a8ee80d9b19f80bfc4bae145b Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Mon, 19 Jan 2026 10:40:30 +0700 Subject: [PATCH] Fix: Stop tracking __pycache__ files --- __manifest__.py | 5 +- __pycache__/__init__.cpython-312.pyc | Bin 214 -> 0 bytes models/__init__.py | 5 -- models/__pycache__/__init__.cpython-312.pyc | Bin 374 -> 0 bytes .../mrp_production.cpython-312.pyc | Bin 1613 -> 0 bytes models/__pycache__/res_users.cpython-312.pyc | Bin 2187 -> 0 bytes .../restricted_models.cpython-312.pyc | Bin 8067 -> 0 bytes models/__pycache__/sale_order.cpython-312.pyc | Bin 801 -> 0 bytes .../__pycache__/stock_picking.cpython-312.pyc | Bin 1606 -> 0 bytes models/mrp_production.py | 82 ------------------ models/stock_picking.py | 33 ------- views/mrp_production_v19.xml | 40 --------- views/stock_picking_v19.xml | 39 --------- 13 files changed, 3 insertions(+), 201 deletions(-) delete mode 100644 __pycache__/__init__.cpython-312.pyc delete mode 100644 models/__pycache__/__init__.cpython-312.pyc delete mode 100644 models/__pycache__/mrp_production.cpython-312.pyc delete mode 100644 models/__pycache__/res_users.cpython-312.pyc delete mode 100644 models/__pycache__/restricted_models.cpython-312.pyc delete mode 100644 models/__pycache__/sale_order.cpython-312.pyc delete mode 100644 models/__pycache__/stock_picking.cpython-312.pyc diff --git a/__manifest__.py b/__manifest__.py index cc224c6..20bf56c 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Access Restriction By User', - 'version': '19.0.1.0.0', + 'version': '19.0.1.0.1', 'summary': 'Restrict access to Warehouses, Picking Types, Locations, Work Centers, and Approvals by User', 'description': """ Restricts visibility of: @@ -22,7 +22,8 @@ 'security/ir_rule.xml', 'security/ir_actions_act_window.xml', 'views/res_users_views.xml', - 'views/mrp_production_views.xml', + 'views/mrp_production_v19.xml', + 'views/stock_picking_v19.xml', ], 'installable': True, 'application': False, diff --git a/__pycache__/__init__.cpython-312.pyc b/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 06b8be22d262e4e694d9f0dd0561365902b60770..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 214 zcmXwzF$%&!5Jh(q2qFY5^bl!W>_o&Ph+wD1qPq)ONHVgsDfT3u!LxXS6gF0NLOLra zpud^-KQsKf=lNK$($&$;cs>X7SMq~?!f+Kv7^p-I2LKV1B7FhJ1$0@B##Xc~l1})P zvzzFL%g>>>>>> 3a96e90 (feat: Hide quality check buttons on manufacturing orders for specific user groups with exceptions for quality roles.) from . import mrp_production from . import stock_picking - diff --git a/models/__pycache__/__init__.cpython-312.pyc b/models/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 1fcec0c046f2158df6adf556a1f235eaa2a9ed8a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 374 zcmXw#ze>bF5XNWo@ANQ&ASftUr*W|qM0^6V-e!rri&-wohS{XZGuR3~gSC(08yv*O z%1*fMDrciN#kaq2iuq>tBhQyW_5Nb*GreEI>?-<)%^krjXwa;Nh6%<3N5qkcW{!zt z5zm|uCnA|SB~C@kV9bieH={8HTkoUsa_|N{nIkeiTGbmZ8>dYjnoD2SMmp36$>qLx zY9%|XR5NP#M%Ce;E79 zwTcqC)6QL8b2U&-Q)=y6&r79@_j0!!rO3x|UYh@H$)&Wd?WMfz#_iq>HHX^V;sHg4 aGyO5iPs|vb;ADb}2~H4voX>%-8}5AlLvVtU^<$3Z_^UArQb#fP_teL=5Zk=-`pw zXLs^dmD^HL{)3xEkt(K*aDz}~#lQ_jsHim!o$o~}JOvI{SY!)eP=yFo1q7?20I*c| zIY;0?BjG!79|m?+VW?RB)Nus&kQ8B%yb1P0KsC`;iZPm6aGHybjXd2oY->GjI?YmZ z?9+>?ZktWd#j1me>lnJLe(Grr!)>d24eP7wvgf+CRfIGa0;%X3NDoQ*xg;j};|?#f z=oaXJdPreX)rCnfu)DAWZh(*10O$%GSdUsW0Yor*T30*)A&e2y35anCyK+ZtL83s= zk(d^kmb=Ocr^ZF?#!f)UfgBpChiV zua@pQw%1gBTlENb*3a-31yN=NvFYP6Q?s|f+*g5iiynj~1x*=Rleq+GL2Tqa%(JE&b=Y`Znv(%JBpZDiZ8 zy;;^hR!vhw$hJsX({)UaGO`&^mjjyRU|`Ff>Ct;i&9=j5e*N`@$-yc8zd7M2$(KxQ zfKlez`>lJe``vrpo-{l+^A|`ZuEE~>!`Z@KdNQCj^)=p`=)GuBcoV(il zV3^DAENw6KUwLGyPXT9OM_7Kg_d$_-6K7pz6*gRl&o_--w^^q&%gHd$;iF132sg2X2rG@{;+E^z?OWiS<%ld7 zu}JW7AeWig1jEevja#F_rEli{rtR`TS!cBQwS# zP-X)&xR&2oDJoRry>|GuKD~gDyug3KLDpHmHD>ZO{#NkJtIh?s!T(+)$Hbo^gz#5T ZH~@tw(lopVAIxvv{`~gefZP7@e*p8=sMi1h diff --git a/models/__pycache__/res_users.cpython-312.pyc b/models/__pycache__/res_users.cpython-312.pyc deleted file mode 100644 index 320b9bb6a2584eb921e653f819e32d3a02bc04c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2187 zcmb_dzi-<{6h6w7MA>E(yOtx{l67(H1Zos1Es_ESiWI2A-@Qi7GPQcX+ubJspY2yq?yE@9>q=4oxN#U&K@QBNtB3nAB=45 zHB5%ZPz-Npif>bWmtxv%c^wR4(BQeI;SF#RvK^aNMRy3qe&NdvYPGtv zq5PI<>_D*Ubz0OHqsLY-KsA8|i^z^eKz=TgzZoXN4}r?MkH*~7T159uDB5xi-7_8A zFB}&fA%WPbp$9@|BB8ejgIV|f&^$eXO}ACubKD(++8%Y|0s+xRNFY#+`5pqNorzUhpZ?#-!SGTHAO8UZaJAP?Y%m~yXFs$d$i`Vn!AQ9_6jZC~A<}@ig zHNmA@3`h0x9OB^nZQU}V>DL?7*kPY;bT@BpVM92SRASQ_x{Vp75TVD$;OA}6b8HO% zJG$N8(haXIb_l-b64>n3vh0de(N7b)rME55of4kXa_JWJjKMNRN>rJX@{-mbC z>D#u1J*{b9gSr8tXr|quuIahrRPi$~SLeefJp7ywAxYAosB|P>mr~#Ee*f~jm;WI!gOUFOJC?6V diff --git a/models/__pycache__/restricted_models.cpython-312.pyc b/models/__pycache__/restricted_models.cpython-312.pyc deleted file mode 100644 index 2c06866e8ff538347d8a389a08a9dd2e8985e7ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8067 zcmeHMZ)_9i8Nc)S{3mwegd~L+2;NdCE;Jq;lt4*aRzlGhOq)PLEa=tTo$a&FKKH$I z{uoDqL`B#?5=~puty9x!Qi+f@CQVvDb{{4oZ6EGtG^aPFA??$?p(T?#KJ9s5`w}Nj z$k0fnt(L?njdJ<3@`58!lK6Tgl9YX^NVp1WKS~ zDuPp+Os8!TTbhY5G%ho;JwrY8cDVHK1qUi)p*BY8$qUi?Bnl&_QiKYiMy=!RJ5zSiAtXo6VM>Kt)S-*y6 z{Rkaw_&Z)+IA}8+X+;oa)nuYsDM*`+V@f(IWq5m)G4MuUbIkn$1Z)Idu>Ax!p+JLV ze#(y83ska7-O45_CbY^pE!Yc8jJ{Uyh^KStePd0U*~ZRed7HOdxP z!QKLG6SnWV?NB?)_JX8IZiou9;k>iAtGny<(}BDraJ=W#$w0m_(0`(k@tUM$xCv}bXPxVKUm{7n3c^?>x zPqhzO6@0ayxL`yNymNQqsQ-|jT+O#CzE?ewWc4_e27$I912t*blH|GWEKuL82S27` za0&`c!7kW7U<&Nd>F?9Mt9@~Wg{$wa;`u9pSJG#FeK8dnYj)~88s2O2tURV*7uc0s zR)WgpCTq0C^j2kSM;!$R+O0KPE!t))SD=S!6;558vgWneCO8CV!4YHP3l`184q1Am z^nYsIpet-{zA%!F!ucR4&N>NjNM;z*p~PaUsF|!Rr6oudB#7u?!-c3Sw#Si@%W~?7 zs)=cHJM<$1s2uSpZo!}6*vY1Mu_y_qjl7u|FT%TMI(a3diNl)7z=1PaHJ23uFE~|< zB0gc-)SPL@Q#0L(sLGMAl9PzGVusZN_EVRZ)(a4uQZe!iGd!u)tVmI#Mu+ zxN3T;jp`58t@> z?Tgd|3At{P$Y6e-NAQ``NjhsMz}Aulqg`K0S74kKWm*AL%b1IBT??Ew&7d zJMQ_Kt`A+mG&QLE25!ba>AKTw_y+Wzvsk(Y=3qV43`1}`90r5BID*C;XV!2S8FK*C zoayDbcXLr0BQ}&=oRk3=mNbMt+GGiU65E-z73=b%EOXopja~o^6|;ud$`%HCLLn?_ zaYF#a=U1s&U*PhI`>gBQz?Fe{o0E;ua}4G1m9wZFlt`C##>slJ?{7+cO3K7fk7ULC zrZQ4y%T?_f)I9}D*tRbdSR#zm=ou{hAk4sW+^cv8hrNS9pKnQxBoNp_t$2hTSnLL| z8un~i?t>QkVCdUG^y$;jN_t8urBoxOmQuq;YPgiTXrwL{{e>roKINkw!bbTT762mv$8v?!2qgtw&luSQlQ7AlsHB zh~+f|Jv<8~;7oL(%z4~dAnO^8Q(|yoN=UMRb8JqH#>KoNqi6vsW4a{ZR45abO{a#U z85Mq>G28^*Cy2b5QMO+}DIOe5MESZj%C-+JlvhTwrh*oOaf%=fDrw{?V_GP{j?N}rj|4qlQI`q!B^>@;` zqL!2)Lm4V51w$#6luL$k39d)a9<}M-z-PX;F9dMYcTVfQalJF4ACZa&l16K?*pm8h zZyu+y$+5uiB5HhPE!4p3!3NVQEAcqQLrpvWpA9j1G!pgo;BtFR5@qxWt~s|B#Y6E(z(7+Yn(r1k=bAXQ(n&!lCwut|R5}^DF3WDB`G) zIsxJVL(}x1sk*;X+x|ke-mlp@_FSoEt5LIc>O`?-=Vj+V>~{Kvd9R0#(BplR=O)h0 wQ#e2GCpCkUg^7Yy(|~o3Pj*jq&r>)*zl-QpYF6t-bYhe8g#1r3GMVzf0g7U(%>V!Z diff --git a/models/__pycache__/sale_order.cpython-312.pyc b/models/__pycache__/sale_order.cpython-312.pyc deleted file mode 100644 index 4517426db58d10065080ebf5d19e3924aa0d36b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 801 zcmY*XziSjh6n=BNdt8pYToX9a<`kQ4Zn;iG#LhG(LTp@wac^gi+pxP6XLd0gEUpNc zMo>@=J6k#b25Z44A&4?)Wn~vQ#gNK3dp{DVc=I0bz3+SPoB7;q)&bAkkB_4-c>grP z;y80>dJ~;7FkmExg!qI&1?~c?>;tnn*|rxA=l8^#`My=yuJg+TF45IQFdnP$ybcg) zcBa?xevUL8e8Rx5FydPWFd#@%^X&uJCBCx-uBBJDf|zeg#^qjJq1zS456J~oGr5^y zx{l@z8AG;AW(z`i2HT4bms!9aKU5}jtQReS$vkJMHy+>;?S8QnC`EI{C6!!dG77Uu zq^_+UmG5vV4XSQDjj|yPMVj&5Os@uIjfn@5Ox%jL6^{pch0-uKXjGZGI-|2k-cTgm zQ~8ifR(SV|Y$(zYb@K!hqIbg!bCroCU`(XS3&N0N_k}TNzbHrZW?FkjAzCWb-6^Db z?7d4%0lWW?RmH5jisp0#-&BN*)Xg|@jJ4Kwv?|l<^|On zn$vyw*19rU|7#PcPfoyCxw@#`K;>;Cjx-J0xo19E3Gg0fRR;E~c561@ZP~`q@Ttpa aPAo#m4`~0kZPF(%tK-J2#vd?#+4~P-_{N6- diff --git a/models/__pycache__/stock_picking.cpython-312.pyc b/models/__pycache__/stock_picking.cpython-312.pyc deleted file mode 100644 index 4e9434b72e36666cfba11ec6060fcbe4b28edf3f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1606 zcma)6&2Jk;6rcUJgA=zwrA~|87($Q*@&Xko(8PyQHAM&$DV!{k)n;cBujAb{JL|}f zY$=BvTnVW~LJARwkW+-hfjP0tY$b?t?nVsMc8vq!_z*i>s8ZhYDO6u8`^5!^Bg9GWq~vE3sbo(Z z%u??zXn{&dV05eSqgJ4|xfZwsKHUVM&9}Hp)R++<7eSaIux zpcCt^Q?F^huGKMewTAkc#VN9q2f3 zzN;E_T1rcY(6O8BNF5Rs))9Fso`%_wYISTGM6IzIAhXWMuOHZ$wxi-lJk0 zoFt!r(74}t(7xa9i2bYA{{&a#h0fyXB*?yUIB_u1RTq2H_qvI6|5|20znAak7JAnT zoe%rz?EcE$O852md+9r!;;9T?y7?%({QU+MKdf{U8RnTi%p7F8Z+zU#E>TZE_2T}- z-bDA+_j;*YoezFXW{+Q6_;IQ~H~&!i<P6dwR bo`9KSF!PsqgDX6IXLtUK`M&{G{osE9=(?q6 diff --git a/models/mrp_production.py b/models/mrp_production.py index 97a2e08..d66557b 100644 --- a/models/mrp_production.py +++ b/models/mrp_production.py @@ -3,91 +3,9 @@ from odoo import models, fields, api class MrpProduction(models.Model): _inherit = 'mrp.production' -<<<<<<< HEAD - restrict_quality_check_button = fields.Boolean(compute='_compute_restrict_quality_check_button') - - @api.depends_context('uid') - def _compute_restrict_quality_check_button(self): - user = self.env.user - for production in self: - is_inventory_user = user.has_group('stock.group_stock_user') - is_mrp_user = user.has_group('mrp.group_mrp_user') - is_mrp_manager = user.has_group('mrp.group_mrp_manager') - - is_restricted_role = is_inventory_user or is_mrp_user or is_mrp_manager - - is_quality_manager = user.has_group('quality.group_quality_manager') - is_system = user.has_group('base.group_system') - - if is_restricted_role and not (is_quality_manager or is_system): - production.restrict_quality_check_button = True - else: - production.restrict_quality_check_button = False -======= hide_quality_check_button = fields.Boolean(compute='_compute_hide_quality_check_button') - @api.depends('product_id') @api.depends_context('uid') def _compute_hide_quality_check_button(self): for record in self: -<<<<<<< HEAD - user = self.env.user - - # Define the restricted groups - # 1. Inventory User (stock.group_stock_user) - # 2. Manufacturing User (mrp.group_mrp_user) - # 3. MPS User (mrp_mps.group_mrp_mps) - handled safely - - is_restricted = False - - if user.has_group('stock.group_stock_user') or user.has_group('mrp.group_mrp_user'): - is_restricted = True - - # Check MPS User group safely as it might not be installed or ID might differ - if not is_restricted: - if user.has_group('mrp_mps.group_mrp_mps'): - is_restricted = True - else: - # Fallback search by name if XML ID not found or module not standard in this env - if self.env['res.groups'].search_count([('name', '=', 'MPS User'), ('id', 'in', user.groups_id.ids)]): - is_restricted = True - - # Logic: If user is in ANY of the restricted groups, we hide the button. - # However, usually "Manager" groups inherit "User" groups. - # So a Manager would also be a User. - # We must Ensure that we DO NOT hide it if the user is a Quality Manager or Quality User? - # The request says: "only hide ... from user in inventory user group, manufacturing user group and MPS user group" - # It implies if I am ONLY one of those, I shouldn't see it. - # But if I am ALSO a Quality User, should I see it? - # Usually, Quality User > Inventory User regarding Quality checks. - # If I hide it for Inventory User, and I am both Inventory User AND Quality User, I will simply NOT see it if I check "if has_group(Inventory)". - # So I should probably check if the user is NOT a Quality User/Manager. - - # But the user request is specific: "change the logic... to only hide ... from user in [groups]" - # If I am an Inventory User, I shouldn't see it. - # If I am also a Quality User, do I see it? Standard Odoo: Quality Users see it. - # If the user wants to restriction, likely they want these specific functional users NOT to do quality checks - # UNLESS they are explicitly Quality Users? - # Or maybe they want to hide it EVEN IF they are Quality Users? - # "Only hide ... from user in ..." suggests targeting these specific roles. - - # Let's refine the logic: - # Hide IF (User is Inventory OR Mfg OR MPS) AND (User is NOT Quality Manager/User?) - # Or is it a hard hide? "Only hide ... from [list]" - # If I assume the user implies "People who are just Inventory/Mfg/MPS users shouldn't see this", - # then if someone is ALSO a Quality Manager, they should probably see it. - # So I will add an exception: If user is Quality User+, they see it. - - is_quality_user = user.has_group('quality.group_quality_user') or user.has_group('quality.group_quality_manager') - - if is_restricted and not is_quality_user: - record.hide_quality_check_button = True - else: - record.hide_quality_check_button = False ->>>>>>> 3a96e90 (feat: Hide quality check buttons on manufacturing orders for specific user groups with exceptions for quality roles.) -======= - # Logic: Hide logic is inverse of "is allowed" - # If allowed_quality_checks is True, hide = False - # If allowed_quality_checks is False, hide = True record.hide_quality_check_button = not self.env.user.allowed_quality_checks ->>>>>>> 4a049d1 (feat: Implement user-specific control for quality check button visibility on manufacturing orders and inventory transfers via a new `allowed_quality_checks` field on users.) diff --git a/models/stock_picking.py b/models/stock_picking.py index 7538df2..15c729f 100644 --- a/models/stock_picking.py +++ b/models/stock_picking.py @@ -3,42 +3,9 @@ from odoo import models, fields, api class StockPicking(models.Model): _inherit = 'stock.picking' -<<<<<<< HEAD - restrict_quality_check_button = fields.Boolean(compute='_compute_restrict_quality_check_button') - - @api.depends_context('uid') - def _compute_restrict_quality_check_button(self): - user = self.env.user - for picking in self: - # Check if user is in restricted groups (Inventory User or MPS User/Manager) - # MPS user usually relates to Manufacturing Manager or User, but user specifically asked for "MPS User". - # Since there is no widespread "MPS User" group in standard, we assume it falls under Manufacturing. - # However, we will check strictly for the groups mentioned in the request: - # Inventory User: stock.group_stock_user - # Manufacturing User: mrp.group_mrp_user - # MPS User: mrp.group_mrp_manager (often implies MPS access) - - is_inventory_user = user.has_group('stock.group_stock_user') - is_mrp_user = user.has_group('mrp.group_mrp_user') - is_mrp_manager = user.has_group('mrp.group_mrp_manager') - - # User is possibly restricted if they have one of these basic roles - is_restricted_role = is_inventory_user or is_mrp_user or is_mrp_manager - - # But we must NOT hide if they are Quality Manager or System Admin - is_quality_manager = user.has_group('quality.group_quality_manager') - is_system = user.has_group('base.group_system') - - if is_restricted_role and not (is_quality_manager or is_system): - picking.restrict_quality_check_button = True - else: - picking.restrict_quality_check_button = False -======= hide_quality_check_button = fields.Boolean(compute='_compute_hide_quality_check_button') - @api.depends('picking_type_id') @api.depends_context('uid') def _compute_hide_quality_check_button(self): for record in self: record.hide_quality_check_button = not self.env.user.allowed_quality_checks ->>>>>>> 4a049d1 (feat: Implement user-specific control for quality check button visibility on manufacturing orders and inventory transfers via a new `allowed_quality_checks` field on users.) diff --git a/views/mrp_production_v19.xml b/views/mrp_production_v19.xml index bf9a355..d351961 100644 --- a/views/mrp_production_v19.xml +++ b/views/mrp_production_v19.xml @@ -1,51 +1,12 @@ -<<<<<<< HEAD:views/mrp_production_views.xml -<<<<<<< HEAD - - -======= - ->>>>>>> 3a96e90 (feat: Hide quality check buttons on manufacturing orders for specific user groups with exceptions for quality roles.) -======= ->>>>>>> 5091c7f (feat: Update module to Odoo 19 by bumping version, adapting MRP and Stock Picking views, and removing stock valuation layer access rules.):views/mrp_production_v19.xml mrp.production.view.form.inherit.access.restriction mrp.production 99999 -<<<<<<< HEAD:views/mrp_production_views.xml -<<<<<<< HEAD -<<<<<<< HEAD - - - - - - - not quality_check_todo or restrict_quality_check_button - - - - - not check_ids or quality_check_fail or not quality_check_todo or restrict_quality_check_button - - - not check_ids or quality_check_fail or quality_check_todo or restrict_quality_check_button - - - not check_ids or not quality_check_fail or restrict_quality_check_button - - -======= - -======= - ->>>>>>> 4a049d1 (feat: Implement user-specific control for quality check button visibility on manufacturing orders and inventory transfers via a new `allowed_quality_checks` field on users.) -======= ->>>>>>> 5091c7f (feat: Update module to Odoo 19 by bumping version, adapting MRP and Stock Picking views, and removing stock valuation layer access rules.):views/mrp_production_v19.xml @@ -54,7 +15,6 @@ hide_quality_check_button ->>>>>>> 3a96e90 (feat: Hide quality check buttons on manufacturing orders for specific user groups with exceptions for quality roles.) diff --git a/views/stock_picking_v19.xml b/views/stock_picking_v19.xml index fd62f27..d4e1664 100644 --- a/views/stock_picking_v19.xml +++ b/views/stock_picking_v19.xml @@ -1,44 +1,6 @@ -<<<<<<< HEAD:views/stock_picking_views.xml -<<<<<<< HEAD - - - - - - stock.picking.view.form.inherit.access.restriction - stock.picking - - - - - - - - - not quality_check_todo or state in ('done', 'cancel') or restrict_quality_check_button - - - - - - - - not check_ids or quality_check_fail or not quality_check_todo or restrict_quality_check_button - - - not check_ids or quality_check_fail or quality_check_todo or restrict_quality_check_button - - - not check_ids or not quality_check_fail or restrict_quality_check_button - - -======= - -======= ->>>>>>> 5091c7f (feat: Update module to Odoo 19 by bumping version, adapting MRP and Stock Picking views, and removing stock valuation layer access rules.):views/stock_picking_v19.xml stock.picking.view.form.inherit.access.restriction stock.picking 1000 @@ -53,7 +15,6 @@ hide_quality_check_button ->>>>>>> 4a049d1 (feat: Implement user-specific control for quality check button visibility on manufacturing orders and inventory transfers via a new `allowed_quality_checks` field on users.)