Questions tagged [odoo-view]

All data’s of the odoo programs are stored as objects. Views are defined to expose these objects to the user. Odoo uses dynamic user interface, which means it is not statically built by some codes, it is dynamically built from XML descriptions. And these screen descriptions are called views.

Odoo Views

Odoo is an enterprise resource management software that is applicable to all kind of business domains. This is simply amazing because it covers all business requirements such as sale, purchase, billing, accounting, manufacturing, warehouse, project management etc… in a single software. Also, they are integrated to each other.

All data’s of the odoo programs are stored as objects. Views are defined to expose these objects to the user. Odoo uses dynamic user interface, which means it is not statically built by some codes, it is dynamically built from XML descriptions. And these screen descriptions are called views.

In Odoo, views define the way by which the models/objects displayed to user-end. Views are of several types, each view represents a mode of visualization. They make the modules more user-friendly and can vary according to the need. In Odoo we use several types of views such as tree, form, search, calendar, graph, pivot, Kanab etc. As the name suggests each kind of views are different, ‘tree’ view provides the list view of objects, ‘Form’ view displays a single object, ‘Search’ view helps to filter the objects etc..

References

295 questions
3
votes
3 answers

What is an external id and where we can use it in Odoo?

If anyone knows what an external id is, and what are its uses, I will be thankful. I didn't find resources about that on the web. Thanks in advance.
Omar
  • 81
  • 1
  • 5
3
votes
1 answer

How to change the order of a One2many field?

I have a tree view, where the new items are placed above of all. Instead of that, I need to place the new item at the end of other items. Moreover, if the order of the new items is wrong I need to set them in the correct order Where is this order…
Capriatto
  • 947
  • 1
  • 8
  • 17
3
votes
1 answer

How to use attrs attribute on Odoo to combine multiple attributes (invisible, readonly or required) into a single one?

In Odoo when you have an xpath you can add "attrs" to a field like required or invisible, when a condition is met. This works fine. I'm trying to combine those 2. I can't get it to work and can't find anywhere how to do it. For example this is…
RobbeM
  • 727
  • 7
  • 16
  • 36
2
votes
1 answer

How can i open a form always in Edit mode , for a particular model

I have a model say 'my.attendance' , also have a form view for this which contains some attendance details.What i need is when i open this form view it should always open in Edit mode.So i can directly enter the attendance without clicking Edit…
user11567402
2
votes
2 answers

How can I stop emails being sent automatically to followers when a record is created?

Whenever I create a record like in subscription or change the states in the record, a mail is triggered to the followers present in record with the logs. How to stop sending these mails automatically which picks up the logs created in the form view?
Navi
  • 1,000
  • 1
  • 14
  • 44
2
votes
0 answers

Can't Access Database After Editing Views in Odoo 10: Internal Server Error

I'm working on Odoo 10.0 CE (Ubuntu 18.04.1 LTS). After editing views from Technical (Login Layout - web.login_layout) I set its Inherited View with Web layout - web.layout. I couldnt login to the database & its showing like this (traceback…
2
votes
1 answer

Error "Cannot read property 'tag' of undefined"

I have odoo11 installed on AWS. I am trying to add fields in "kanban view" but I get the error "Uncaught TypeError: Cannot read property 'tag' of undefined" when trying to define kanban view. So how to solve this issue? or what is the correct way…
2
votes
1 answer

Odoo adding field to res.partner

I am using odoo 10 and I want to add the barcode field to main form. I sucessfully moved the field but it does not save or show any data. Here is the code I used to show the Barcode field on the form. As you can see it does not show any…
user2379186
  • 421
  • 6
  • 27
2
votes
1 answer

Domain filter based on field in res.users for Odoo XML tree view

My question is: How can I reference a field in res.user and use it as a custom filter when opening a tree view in Odoo 10? I extended res.user to add a field called: assigned_office. This is a Selection field. I am now trying to use this value to…
philips
  • 437
  • 1
  • 5
  • 15
2
votes
1 answer

Inherit specific fields from res.partner Odoo v11

Hi i've got a field which contains contact information so i used the inheritence so i can get only name, adress, email, phone num but i'm getting all the view showed with all the existing fields. The xml code:
Aab Crow
  • 23
  • 4
2
votes
3 answers

How to organize many2many checkboxes in lines (rows) rather than columns?

I am creating one module where I have a Many2many field and I would like to convert it into a checkbox group. I have written this in my XML view to achieving it But the field is shown all…
Harshit Trivedi
  • 764
  • 9
  • 33
2
votes
1 answer

View or hide one report menu based on condition in odoo 8

I am new in odoo. I am using Odoo 8. It is under stock/stock_report.xml. I inherit one menu option (top dropdown menu) report in my new module. Now I want to show it based on some condition. More clearly, menu="False" if ('state', '==', 'assigned')…
Shahjalal
  • 1,163
  • 7
  • 21
  • 38
2
votes
2 answers

Why do I get this error?: Expected singleton: spray.action(1, 2)

I have a button in a form that when clicked is supposed to update the current model mrl with data from the spray.action model. Then I do further processing but it raises the error ValueError("Expected singleton: %s" % self) ValueError: Expected…
danielmwai
  • 305
  • 1
  • 6
  • 24
2
votes
1 answer

How can I get the record in fields_view_get method when I into the form view from a tree view

This question is my first question in stack overflow and my English is not well.I hope you can understand me. Goal: I want to alter my form view dynamically by the record's state. Trouble:I can't get the record or record's active_id when I into the…
赵新岭
  • 23
  • 1
  • 5
2
votes
1 answer

Show a many2many field as a many2one

I have a field many2many and in a specific view I need to show it as a many2one, or imitate the behavior of the many2one fields (restrict that only one record can be added and if the user select another record, the one that had previously selected…
Dayana
  • 1,500
  • 1
  • 16
  • 29
1 2
3
19 20