Mastering Groups and Access Rights in Odoo 17. Days-4:#2 — Transcript
Full transcript
- 0:01Hello, welcome to my YouTube channel.
- 0:03So today is the second video of day
- 0:07four. Okay, so in today's video, we
- 0:10will see what groups are and what
- 0:11access rights are. Module security.
- 0:14Basically, what module security is, it
- 0:17works with groups. It works on access
- 0:19rights, basically. Okay? These come
- 0:21under module security. Right? So let's
- 0:25start. This was my 17th. I had run it.
- 0:32Copied it and pasted my localhost here.
- 0:37Ran it. Okay. So this was our student.
- 0:43Right? Currently, what is happening
- 0:46here is there are two menus. Student
- 0:48and Google. So now, what I want is to
- 0:51create a group, and the user who has
- 0:54access to that group. Right? Only that
- 0:57user will see access to Google. Right?
- 1:00Only they can use Google's access. Only
- 1:03they can open Google by clicking on the
- 1:07menu. Okay? So now I will show you
- 1:10where our groups are created. You can
- 1:13see your groups here. You will go into
- 1:15settings. Right? There is a menu for
- 1:18groups here. So you will see all the
- 1:20groups here. They are already created
- 1:22here. These are used to provide access
- 1:24rights. Right? And you can also see
- 1:27here. Opened a user. So these that you
- 1:30see, the ticks you see here. Blue
- 1:33boolean type, true-false type. Right?
- 1:36Ticked on these. So these are all our
- 1:38access rights. Groups. Right? We will
- 1:41see how to create these today. Right?
- 1:44We have some groups of this selection
- 1:47type. Like billing or billing
- 1:49administrator. So we will normally look
- 1:53at these, no need to create those. If
- 1:57needed, there is nothing special in it.
- 1:59It just needs an implied ID to be given
- 2:02, which is a group. This group has a
- 2:04bit less access. The last one has
- 2:07proper access. Has complete access.
- 2:11Right? Now we go inside the security
- 2:15folder and create a file named security
- 2:18where we will make all the groups. This
- 2:22is our XML type. Okay, we will start
- 2:26the odoo tag here. Press enter. Odoo.
- 2:34Start the tag. Then start the data tag.
- 2:38After this comes the model, which is
- 2:42res.groups. Groups. So, I'll copy it
- 2:48now. These are the models. These are
- 2:54the rest groups. Okay? We'll pick this
- 3:04one up from here. Copied it and pasted
- 3:08it here. Let me align this. I will
- 3:12change its ID. Then I'll explain it to
- 3:14you. Google Axis Google Axis Google
- 3:25Axis Menu. Okay? What is this ID? The
- 3:31ID is basically what you see here as
- 3:34Technical; it's a group. All these are
- 3:37inside this group. Okay? It's a
- 3:39container. Basically, you can assume
- 3:41everything is kept inside it. So, the
- 3:43ID of the container will be this one.
- 3:47You search for its ID where this
- 3:48category is created. ID equals, written
- 3:56here, look, it's created here. This
- 3:59category is created. It's the
- 4:01category's ID. We will keep all these
- 4:03things inside this category. Okay? It's
- 4:05a container. We will keep all of this
- 4:07inside this category. Okay? So we will
- 4:09put it in this category, or you can put
- 4:11it in any other category too. Like the
- 4:13Accounting one is created. Like there
- 4:15will be an Accounting menu here. Access
- 4:17right will be there. There it is. Here,
- 4:22it's Invoicing, Invoicing Accounting.
- 4:24Okay? That's it. So, we'll do it in
- 4:29this for now. This is a category ID. In
- 4:32which category you are going to put
- 4:34your group. So, I put it under
- 4:37Technical. I will link my file in the
- 4:41manifest. I'll link it here in the
- 4:45manifest. Link your file. Then I will
- 4:53upgrade the model. Now we will check
- 4:57here if my group appeared or not. Okay?
- 5:10You will see here in the groups. Google
- 5:15Axis, the name is strange.
- 5:17Google Axis Menu, okay, it's Google AIS
- 5:21Menu.
- 5:22Vipin
- 5:24Don't you need it?
- 5:26What is the name?
- 5:26Vipin
- 5:28Okay, Google Axis will appear.
- 5:31Brother, I gave it, tell me.
- 5:33The name is.
- 5:35Either it will be Harsh or.
- 5:38Whichever user you add here, they will
- 5:41get the access. Basically, okay, you
- 5:44can also go and check in the user's
- 5:46menu. Why is it written, why is it kept
- 5:52there. If you look here, it will appear
- 6:01here too. Okay, sometimes its styling
- 6:03gets messed up, but it happens in this
- 6:06case, otherwise it doesn't. Okay, you
- 6:08will also get to see this styling etc.
- 6:11sometimes, but it works properly. Okay,
- 6:14it doesn't cause any issues, so you can
- 6:17simply add a line here to add your
- 6:20group, and it will work. Okay? So now
- 6:25look here, the Google menu is appearing
- 6:28. Okay? It is appearing right now. So
- 6:32as soon as I Google Access was there. I
- 6:39will apply the Google Access to this
- 6:43menu. I will apply this group's access
- 6:45to the menu, and then it will work.
- 6:47Okay? We haven't applied it yet. We
- 6:49have only created it. Now let's apply
- 6:52it to the menus. Okay? So this is our
- 6:55student one. This one is Google's. So
- 6:58it has an attribute called groups. I
- 7:01put the attribute of groups here.
- 7:04Before this, I need to provide our
- 7:06module name. I entered the module name.
- 7:09Then module upgrade. Just doing this is
- 7:12enough, just this much. Now I will
- 7:14refresh it. Refreshed it here. Now see,
- 7:17the menu has disappeared from here. Now
- 7:19I want the menu to show only if the
- 7:22admin has access to that group.
- 7:24Otherwise, it won't show. Currently, it
- 7:27has Google access, so it will show. So
- 7:30I will give Google access here. Gave
- 7:36Google access. Then saved it. As soon
- 7:40as I save and refresh here, the menu
- 7:42will start showing. Similarly, you can
- 7:44apply it to fields as well. Like it is
- 7:46here right now. I will apply it to the
- 7:50phone number. Okay? I will apply it to
- 7:53the phone field. I will just copy this.
- 7:57It is that simple. We will go to the
- 8:01form. Go to the phone number field and
- 8:04paste it. That's it. That's all, it's
- 8:08pasted. Okay? Now performed a module
- 8:12upgrade. It is currently visible. I
- 8:18will remove the access from here. I
- 8:24will remove the Google menu access from
- 8:27here and then save. Then that field
- 8:29will disappear from here. Okay? This is
- 8:33how you can use groups. You can apply
- 8:36it to menus, fields, or even buttons.
- 8:41Okay. Now let's look at access rights.
- 8:45What are access rights? Like you see
- 8:48the create button here. Okay? Now if I
- 8:51go into this, I mean I will change
- 8:53something. So by default, the edit
- 8:54button is not showing here. As I save,
- 8:56the edit button starts working. Okay?
- 8:58It used to show edit in version 16.
- 9:00Sorry, it used to show in 13 and 15. It
- 9:03doesn't show in 16 and 17; you can edit
- 9:07directly. Okay? And here you can see
- 9:10the duplicate and delete options. These
- 9:13are your four types of access rights.
- 9:15Read, write, create, and copy. Okay? So
- 9:18, you can also see them from here.
- 9:22Access rights, view access rights. You
- 9:25can also see from here. Read, write,
- 9:26create, and delete. Okay? If I remove
- 9:31someone's access from here. This is my
- 9:36student.student. If I remove the read
- 9:39access from this now. Sorry, I'll
- 9:42remove the create access. I'll set the
- 9:46third one in student.student to zero.
- 9:50It has set its main access right to
- 9:51false. It can only read, write, and
- 9:55delete. But it cannot create. The new
- 9:59button that was appearing will be gone
- 10:01now. I will refresh. As soon as I
- 10:05refreshed, the new button disappeared.
- 10:08Okay? You can still edit here. You can
- 10:12edit. Okay? But you cannot create. This
- 10:17is our access right. Now, I will keep
- 10:21it at zero and apply the group I
- 10:25created here. Okay? I will now grant
- 10:32access rights based on this group. I'll
- 10:36remove the one that was already applied
- 10:38. I will add my own here. I added my
- 10:45group here. So, only if my Google
- 10:47Access group has access, will it be
- 10:50able to create. Otherwise, it can read,
- 10:53write, and copy. Okay? Refreshed. Okay?
- 11:02Now I go here. And grant Google access.
- 11:13Access granted. Saved. Now I go over
- 11:20there and refresh. Okay? Refreshed. Now
- 11:24, if I set this to one. Only then will
- 11:29you be able to create it. Okay? If I
- 11:33look at this group, the module is
- 11:37visible here. Okay? If I remove this
- 11:41group, the module will disappear. Watch
- 11:45, I haven't done anything yet. Went to
- 11:47user. And. Searched and removed the
- 11:55token menu. Save, now I go here. I
- 11:59refresh. Oh, sorry, I didn't apply it
- 12:02to the menu. I have to apply it to the
- 12:04main menu. Then your main module will
- 12:07be removed from here. Our main menu is
- 12:10this student menu. So you have to apply
- 12:13it to this, and when you refresh here.
- 12:16Okay? The module will disappear from
- 12:18here. If you want to grant access to
- 12:20that group, you can also do it by going
- 12:23into the group. Search here. You can
- 12:26also add users from here. Once you
- 12:28grant access from here, it will show up
- 12:32here. Okay? This is how you can use
- 12:35access rights. These are our access
- 12:38rights and groups. This is how you can
- 12:40use groups along with access rights.
- 12:43Okay? The agenda of this video was
- 12:45exactly that: groups and access rights.
- 12:47We covered two topics. In the next
- 12:49video, we will look at report rules.
- 12:52Okay? So, thank you.
About this transcript
This page contains the full transcript of Mastering Groups and Access Rights in Odoo 17. Days-4:#2 by Odoo Tech , generated from the public captions YouTube serves with the video. The transcript has 1,591 words across 226 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.