If condition in xml odoo. name but it seems to check whether a.
If condition in xml odoo Hi All, I have fields, owner_user_id = fields. id} Need Your help please. Enjoying the discussion? Don't just This Odoo app allows users to dynamically change the background and text color of any integer field based on a threshold value. Multiple conditions in domain odoo 8. po file. osv import expression. : 'Total Value') contains a string '**Total**'. Sample code of t if condition is below: < t t-if ="field. versions_ids = False Hello my friends; I have an action type ir. from odoo. xml that if i'm view some model then show me this code. model def fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False): doc = etree. 2. Thanks a lot in advance. Then the syntax would be ['|','|',A,B,C]. i tried below code but it is not working. I have a field DISCOUNT that i want to display on INVOICE/QUOTATION report only if one of the products hold a DISCOUNT value more than 0. group_user can edit project. frozendict() got multiple values for keyword argument 'deferred_start_date' Hi @CZoellner thanks for replying, there are no other access group involved. raw_value}};" Dear all, I am using Odoo 12 and having problems on using xpath for 2 expressions. Odoo - How to Modularize XML Field. That's where attrs steps in! Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. But what happened is the css class always added even though the user is in the group. It is under stock/stock_report. TypeError: odoo. It keeps necessary data for shops. I want group and state both condition to mathc – user1576199. XML(res['arch']) for field in res['fields']: for node in You can achieve it using an if condition, first check at least one of the line in the one2many line contains the image and set this true or false to a variable and based on it, add an if condition in the report template. Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. Hi, my code snippet looks like this: t-raw="record. Commented May 30, 2017 at 6:39. and if you want to get the id in database we do this for example: self. 1 Apr 20 . XMl file should be looking like, In case if you are using Odoo web client(GUI) instead of code then there is a bit I have a model 'shop' inherited from 'stock. To avoid element rendering, a Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. Hot Network Questions Find all unique quintuplets in an array that sum to a given target How to estimate the latency of communication? I though to bring the "groups" within part of "attrs" condition but as far as I learned (maybe wrong), user group can not be part of a condition in "attrs", however that should be achievable with the "eval" (maybe wrong here too). But if you want either of this condition to be true, then use '|' instead. Odoo 14. location'. partner_id. for example,i have a module with a field married or not. product_id. users', string='Project Manager',index=True, track_visibility='always') remarks = fields. Pyae Pyae. <t t-foreach="payments_vals" t-as="payment_vals"> Paid on <t t-esc="payment_vals['date']"/> </t> 2. country and env. How can I do this condition with xml? No. conditionally hide a button openerp/odoo. Here is my code, I'm able to hide the field but can't do it with the if condition on the supplier field. 0/addons/hr_holidays/views/hr_leave_allocation_views. xml is the following Inherit Group Category From Other Module's security. payment_token_ids"> Do you want to enable auto pay? <t t-foreach="contract. po file, nor by creating my own gl. There based on the operation type selected i want to hide some columns in the main tree view . There is nothing in object to know if the picking is of return. If condition is true, span will be displayed else < td > will be empty How to use starts with condtion in qweb xml in odoo. I've tried to locals() in linux terminal to list the variable, but there's nothing. name else: I have extended the res. Commented Sep 23, 2013 at 5:35. Hello, I want to add condition to base. Hot Network Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. How to make a field invisible based on condition in Xml. {'default_delivery_types':record. If the user don't have a signature, just the company name should be used (else condition). partner view which shows only sales orders with redeemable_points > 0 in it. Here, Odoo uses a different system to manage dynamics like visibility, editability, and so on. has You can also apply condition with the html tag. employee, the manager should be able to see only the employee under him but someone from the hr department should be able to view all the employees in the view. My field is many2many. issue in every stage. I see the problem you've described and it does seem to be a bit surprising. QWeb Templates¶. Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of XML Odoo field conditional color formatting. i want to invisible this button using "invisible" property. Because wat odoo do is convering the record tag to an insert query or update query the id returned by the insertion is mapped with the attribute id (id="A") this why we call it xml-id. AND(list_of_conditions) and expression. In this Report if condition available if amount to text filed is yes then it's print amount to text in report and if no then condition false so, it's not print. Get notified when there's activity on this post. users'. get attributes but didn't work if anyone know about this , please comment below is it possible or not (if possible please give me suggestion as how can i approach that) Either use attrs in XML or if your condition is complex then you can create a boolean field, change its value from onchange / compute field and use it in attrs. Is there a list with all posibilities for the 'decoration-xxx' attribute for OdooV9? I noticed that full bootstrap support is not given (f. I have managed to create the product. Add a comment Discard. in a many2one field to hr. 1 Sep 23 . I have a custom module test and created pages called test_1, test_2, test_3. Odoo Qweb New Line in t OR condition in XML. If you are using default company_id field then you have to remove attribute related. in odoo attrs not affect on form its only works on field – Alpesh Valaki. The domain has to look at multiple conditions: The invoice has to be a purchase invoice, not a sales invoice (controlled by in_invoice or out_invoice on the type field from the model) The state has to be either open or paid, not concept. xml: assets. i tried Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. Hi, You have to change the order of your statements. This built-in helper in the Odoo core now allows you to check if a field is empty or not. Hide field using group. I inherit one menu option (top dropdown menu) report in *my new module*. How to colorize rows in tree view based on values of related models (Odoo) 0. I have found Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. signature" just the company name /div> So what I'm trying to do inside* Odoo V12*: If the user has a signature, this signature should be used ( if condition). Tutorials; Documentation Consider the following fields in XML view. act_window. Odoo take the first returns true. you can use methods in res,users table to determine if current user belongs to manager group user. So I made a selection field named 'type_return' with values 'return' and 'non_return' and two more Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. This solution completely avoids id's or labels. name is equal to 'Total'. Can Since Odoo V14 there is a new helper called "is_html_empty". However, when you hop over the fence to the XML-based form views in the Odoo backend, the party rules change. Thanks. I dont have idea how to call model. Please find code in comment. this is my invoice Report. user_id. Many2one('res. How to change the format of a fields in form view and tree view in odoo? 1. My condition is the data should be inserted according to the name i. You can use this "is_html_empty" function in QWeb statements. model == 'hr. xml in Odoo. template form view. This question has been flagged. use js_class attribute, search for odoo code to see Normally, we will define a js class in js and in xml we will add js class in a tree view so that tree view will have the js code and xml template only. xml to check the source model Hello, how to make an xml condition in base. For exemple I have a multi select field with: X Y and Z values, and I want that an another field become visible if Y is selected. I have tried using column_invisible, invisible, context. I have the need to add a page-break on core Odoo invoice report report after a specific number of lines. Modified 3 years, 9 months ago. Odoo 10 - Qweb t-if t-else syntax. Hot Network Questions I need a temporary hoist and track system to lift a dead chest freezer up through a tight stairwell Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs. picking' there is a one2many field 'move_ids'. Xml File : 1. I have tried this but it is not working. I have been customizing the inventory module in odoo 16 . 3. The create_date has to be bigger, or equal, than the Hello everyone, I have code to check whether the user is in certain group or not. Model): _inherit = "product. In the same date_done field i wish that all user (base. And I stopped using Odoo already. pos. What i want to do is add a condition to the view list "promotion program": if 'admin' show all "promotion programs" and if another user group: display only the promotion created by himself. payment_type == 'outbound': record. It uses the SQL 'like' under the hood, which requires '%'s to either side to create the 'contains' operator, as other answers have mentioned. Dương Nguyễn. Related. The condition that i applied in my code is not working. Hi, I've changed your question title from " How to integrate js with Odoo" to "how to call javascript function on button with xml in odoo?". image class and created the one2many relationship successfully as follows. this code should work if what you want is all these conditions to be true at the same time. Let's say 10 lines. 11. Ask Question Asked 3 years, 9 months ago. This works fine. code == 'IN'" Hello everyone. xml : <t t-if="widget. Is it possible to implement a conditional attribute on a field in Odoo? 0. Conditionals: We know that in the case of conditional statements we use the if directive. QWeb is the primary templating engine used by Odoo2. order. Char('Project Name') project_manager = fields. ref('xml_id_here'). xml. 2 Aug 22 . This is the template from website_slides > static > src > xml: I'm still working on resolving issues in my code, but I've reached a point where I'm stuck. . I have inherited calendar view and wrote a condition in js like all the calendar changes should be reflected to test_1. In two other stages (of all 7) portal user can press buttons Accept or Reject and change the stage value of the issue. i want to insert data to a model through xml file. options="{"no_create": [('field_x', '=', 1)]}" Currently I can only get the no_create option to work by setting it to True. Having said that, you Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. samer alsarhan. t-attf-style="background-color: {{record. onchange('payment_type') def default_get_company(self): for record in self: if record. Improve this answer. It is an XML templating engine1 and used mostly to generate HTML fragments and pages. translate" > < td > image </ td > </ t > Thanks Also try by ref(XML) too. Odoo's unique value proposition is to be at the same time very easy to use Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. neither in parent nor in child object. 4. Thanks & Regards, Email: odoo@aktivsoftware. When you update your Odoo Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. xml to check the source model Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. 519 1 1 gold badge 4 4 silver badges 16 16 bronze badges. For example in following code if employement type is 'Regular' I want to show the lines. How to use condition in form view of Odoo 9? 4. Please can someone help? I used an answer on this previous topic as a guide. <label string="Label 1" attrs="{'invisible':[]}"/> <!-- Provide your condition inside [], if condition will be true the label will be invisible --> Hello to all, Does anyone knows how to solve this kind of situation? I have created security access on hr_contract. 6456: How to use t-if condition in xlsx report (odoo 12) . version_id is in sales. I have found several samples and information about which tags to use and how to use "if statements" for adding the page break, but unfortunately any of this samples help me because I do not know where to add the page-break tag. I am not yet in Python coding Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. Odoo, Condition in record tag. Is there a particular syntax I may be missing to enable the use case described above? base. company. I am working on a report template in Odoo 9 qweb template and I need to use OR logical operator in t-field to get data from one of the two fields that I want to print their value in my report. Single condition: Simple condition in programming: if field1 = 10 In Odoo domain filter, it will be written as: Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. g: You can use the attrs attribute on In this blog, we will discuss conditional and looping statements in qweb templates. id # if its char field then self. Imagine that another installed module (named module X) is inheriting the tag you are replacing. The Output for the 3 Date and "Condition" is the following: Date: Sat Jul 07 2018 18:01:09 GMT+0200 (Central European Summer Time) I am trying to create multiple condition in attrs to make a field invisible based on selection of another field Domain filter operator for XML attrs in Odoo. com Skype: kalpeshmaheshwari Using position="replace" could bring problems, the best option is to use position="attributes". If the user not in this particular group, i want to add css class for certain element in mrp bom print pdf. thanks, but i use external xml file : foreach is in odoo xml file, and my module contain xml file that inherit the xml file of odoo report, so in my xml file i didn't have foreach tag to use your example, and i should not modify xml files in odoo/addons – Is it posssible to apply a domain only when some condition is true otherwise the domain should not be applied in V7 For eg. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. Only for your information, this solution does in Odoo 15 exactly the opposite. Hot Network Questions Improve traction on Hello everybody, I would like to make my form fields readonly in my model based on a condition, I'm trying it with fields_view_get for not add "attrs readonly" in each field in my xml file, I have the following code: @api. Hot Network Questions Can the setting of The Wild Geese be deduced from the film itself? On a light aircraft, should I turn off the anti-collision light (beacon/strobe light) when I stop the engine? Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. OR(list_of_conditions) to generate your domain. Try use res_model condition in you xml template for the button i guest. Best Answer I am having a requirement to run a code on condition. Then, another custom group (change_date_group_privilege) will have the privilege to be able to change correspondent field Hi guys, I am a beginner in odoo and I dont have enough experience, so I need help from you gyus. Thank you. i want to convert this code to Odoo 17. skills'"> Test Test Test Test Test Test Test </t> in <t t-name="ControlPanel"> Odoo is a suite of open source business apps that cover all XML Odoo field conditional color formatting. country. Follow answered Jul 25, 2020 at 11:52. i have case about odoo, i was trying to give a condition for create in tree using attr. Configuring multiple conditions in Odoo XML views can be a powerful way to custom_module > static > src > xml> custom_template. Subscribe Following. Hot Network Questions How do I make my lamp glow like the attached image Happy 2025! This math equation is finally true A letter from David Masser to Daniel Bertrand, November 1986 So how to declare javascript on button with xml in odoo? 0. I can do this with a one2many, but doesn't work with a many2many. Open the Advanced Search panel, select a criteria, then click on 'Add a condition' to add a second one (do not hit enter or close the filters window), then click on 'Apply'. Hot Network Questions Why does one have to avoid hard braking, full-throttle starts and rapid acceleration with a new scooter? Are Shell Script --long-options POSIX compatible? What does the expression R1 = RF||RG mean? . <?xml version="1. I have some data values to pass to a field through context. 0. versions_ids and also sales. and here my code before i give a condition : <tree string="Data" create="1" delete="1" edit="1" editable="bottom" > How to make a field invisible based on condition in Xml. I think I have to limit rights to some fields on the view. @api. I hope it will be useful to you. you will put this functional field in view and make it invisible. misc. Add a comment | Your Answer By default '&' is applied. I was able to update other terms through that method, which suggests this might be a bug with that specific term for some reason. Now I want to show it based on some condition. View or hide one report menu based on condition in odoo 8. The original code for the views I want to inherit and replace are: 1. here in your case (Field1=A or Field2=B) AND Field3=C and Field4!=D, this can be I am working on 'stock. My query is, how can I set a domain for a XML field *to select sales orders* with *redeemable_points is not equal to 0?* * * Below is my xml view : This is my odoo 16 code. In Odoo when you have an xpath you can add "attrs" to a field invisible, when a condition is met. hello everyone, I was trying to make some changes in my xml custom template where if checkbox is checked then show the select tag it would be really great if you could help me in it xml: <t t-if="contract. How to In model stock. But I need to show these two attributes in case of picking is returned. i tried I have a custom module test and created pages called test_1, test_2, test_3. Subscribe. ODOO domain follows the prefix expressions. Add a How can I include my generic qweb view on my Odoo 16 Form View using JS or Controller. com/odoo/odoo/blob/12. I do not know if default values are juste giving with active_id or some like default for char or integer. I want to format text colour based on the value of the cell - red for some values, green for others. The app introduces a customizable widget that automatically adjusts the visual representation of integer fields, allowing users to define their own colors for values below and above the threshold. name but it seems to check whether a. Example : I need to color sale order in yellow color if the field state ='draft' and in blue if state='sale', How to make a button appear in condition in Odoo. Is it possible to combine the conditional statements? Example: decoration-info="(duration>5) and (duration<10)" Is it therefore always necessary to define a state in the python file to be able to use the Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. agency. You can use onchange api and compute company field. group_user ) have privilege to change the value when the picking state are only in "Ready" but not in "Done" ones. e sms gateway in the model gateway_setup. In this, I want to show all images related to a product as a slideshow on the backend. For Odoo 15 is the correct way to add the option group_operator=False to the python declaration of the field. class product_product(osv. picking, I want to hide edit and create buttons based on the condition (if my field boolean : 'is_active' = False) I tried with: <xpath expr="/form" position=" Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. : decoration-bg-danger="xxx"). Hi, Im trying to hide the field called vat if the field supplier is true, but I don't know what I'm doing wrong. company = self. <t t-if="len(payments_vals) Dear all, I am using Odoo 12 and having problems on using xpath There are two solutions for this. Hi guys, I've made some custom code that needs to filter out particular purchase invoices. group_portal can edit SOME fields of the issue only in NEW stage. env. XML Odoo field conditional color formatting In the statusbar is easy to hide you need to set the invisible attribute attrs="{'invisible':['|',('condition','goes','here')]}" but if i understand correctly you need to show different selection range based on a boolean condition so the best solution is to split the selection in 2 selections and use an invisible with the boolean condition I have inherited calendar view and wrote a condition in js like all the calendar changes should be reflected to test_1. Odoo XML Conditional Formatting Text. recruitment. xml odoo. That would show products with sales. There is a many2 one field. I also inherited the slide. portal. i. 53: Community. How to make fields appear required (by colouring) 2. 1. 0" encoding="utf-8"?> Please do not answer. No matter what I tried, I was not able to get specifically that term updated by changing the gl. users', string='Assignee') project_name = fields. So, if your first condition is more global then the others, odoo will always take it and ignore the rest. I am trying to add a slideshow to the product. the function for this functional field will be compute a true or false value based on all the conditions of yours (eg : is manager, other field condition etc) . Use Commas Between Operators and Conditions: Ensure that each | and & operator is followed by a comma, separating it from the next condition. color_field. Mohammed Amal N. xml: custom_module > views > assets. This In Odoo 17, it's possible to write Python conditions directly in the XML view. Add I am trying to edit the xml code on Odoo using the studio app. I tried using: t-if = 'Total' in a. e. raw_value. I can't limit rights to record, because I need to change the value of the stage. How to use OR condition in t-field in qweb template in Odoo 9? 1. odoo xml - hide two buttons with same attribute - on condition. i. 5. Best Answer Hi Gautam, You can give a class for your button in xml Normal odoo 'like' (and 'ilike' for the case insensitive version) allows the use of '%' and '_' within the search parameter. I have noticed that in your sample code your are putting field in '' . Is there anybody know why my code doesn't work? Here, Odoo will evaluate all these condition groups, and if any one group is true, the test_results field will be required. How to make invisible Field Odoo 14. You can then simply wrap this in a t-if statement as such: "t-if="is_html_empty(doc. All my XML language elements or "instructions" support a "condition" attribute which if not present or if it evaluates to true then the element's instruction is executed. So i add t-if but it don't work: my code add to base. Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de Hello, I am using Odoo 15 and would like to know if it is possible to set the background color of record in a tree view based on condition. Disable a button based on CONDITION in Odoo? 2. To add conditional style for a field or any property you can use CSS class as below Step 1: Create custom style you want and add it in CSS file of your module. How to make an invisible field visible again in odoo 15. template" _columns = { 'images': Hello I try to change the visibility of a field depending if a element is selected in a many2many relation, but I cannot determine how to write the condition. Now i need to remove Day and Month button from test_1 page -> Calendar view. Odoo Add Multiple Group With Different Condition For the Same Field. note)" and do a t-else statement for example. Hello Odoo community, I have a if statement in the qweb, which when you rollover the object shows the message box which contains that product details, but if product ID is not found message wont be displayed which is correct, but how i can make another if statement saying "product not found" which would be shown only if first if statement is false? Also i tried to put The acces_rules. Viewed 3k times 2 I want hide a field in inherited view at account. Remove create and edit depending up on value of another field in odoo11. You can refer: https://github. But if you want complicated things like that what you should do is use python code using the Hello, How to condition, t-if xml tag, header and footer pdf template base on print action? I want to use different header for these PDF -Print invoice without payment -Print invoice with payment -Print multiple invoice -Print comercial invoice -Print receipt I'm a very newbie. Here is the situation, on hr_employee i add field is_confidential and on hr_contract, if is_confidential (field on hr_employee) is checked, the user (let say HR I) cannot see employee's Wage and I would like to use t-if condition to check whether a field name (Ex. Hi everyone, I asked please about a question in the file. Visibility of field only when particular field selected. tools. xml already included in the manifest file. First : <xpath expr="//t[@t-if="receipt. I need to add two more attributes in this field. carrier_id. Dilaw bedj. xml: if Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. partner model and added a custom field to it (say " redeemable_points "). ? Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. And that is working fine. Char('Remarks', size=100) I need in my view for perticular assignee if i enter project name in field project manager should be Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. xml In your case, add this content to your view: <field name="test" attrs="{'readonly': And from odoo qweb report, I have iterated through (language) field and inside it,I Question: I'm encountering issues while trying to use conditional statements (t-if, invisible) in Can I use "if" in a xml file (tree view)? How can I do this? e. actions. and use expression. For instance, if we have a field named 'can_edit_shop_orders' in our model and we need to I want to add condition in this line corresponding to the job_id span t 1- how to use if condition in computed filed to return two values depended in other filed 2- In Odoo 17 Studio Book, conditional properties are essential for adjusting a field's visibility, You have to declare a functional field which is of boolean type. It has a field 'shop_manager_id' which is many2one to 'res. client and env. How to add a label after a field (Odoo 14) 2. It keeps the sum value in the header from the grouped element and removes the value of the field from all child records of the group. You can generate your own domain condition understanding it or. : CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc. So i am trying to write t-if condition. Template directives are specified as XML attributes prefixed with t-, for instance t-if for Conditionals, with elements and other attributes being rendered directly. Hello, how to make an xml condition in base. payment_token_ids" t-as="card"> A custom interpreter using a nesting stack was used to parse these "programs". But, always not working. Now, I have created a page (tab " Redeemed-Sale Orders ") in res. <t t-if="condition"> <p>True</p> </t> If the condition is Odoo provides a powerful way to handle this using domains in XML views. channel model. payment. 1066: Favorite filter Odoo 10 Solved xml odoo. 0 (i. e - that product has a discount given to it Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. line. I have a field DISCOUNT that i want to display on INVOICE/QUOTATION report only if one of the products I am editing my custom xml code and want to enable no_create only if another model's field is a certain value. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company Set the two labels above to your field and apply condition inside the labels. use . i want to have a special view following the field thank's Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. Change many2many field tags color odoo. Hot Network Questions How can I control LED brightness from an MCU without using PWM How do we know that Newton and Leibniz discovered calculus independently? For Odoo >= 10, <t t-if="condition"> </t> <t t-else=""> </t> Share. Hot Network Questions Is the word "boy" racist in the following situation? Errors while starting vite + react Short story about a city enclosed in an electromagnetic field Question about sentence in 五柳先生傳 Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc. The "Condition on BirthDate" (comparison with Birthdate and DueDate) is working fine, but the "Condition" (comparison between method Date() and DueDate) is always False. xml how i can display a view depending on a field. Odoo's unique value proposition is to be at the same time very easy to use and fully integrated. However, there are case where sometimes, the users cannot see some field. I am using Odoo 8. register wizard. How Could i achieve this. shgkaeyakklgcifuomwyveqtbwdduhhimcezyrbjnwbhbvuidzswsyt