[REF] *: replace uses of "<>" in xml domains by "!="
This commit is contained in:
@@ -230,10 +230,10 @@
|
||||
<field name="has_outstanding" invisible="1"/>
|
||||
<sheet string="Vendor Bill">
|
||||
<div>
|
||||
<label string="Draft Bill" attrs="{'invisible': ['|',('state','<>','draft'), ('type','<>','in_invoice')]}"/>
|
||||
<label string="Draft Refund" attrs="{'invisible': ['|',('state','<>','draft'), ('type','<>','in_refund')]}"/>
|
||||
<label string="Bill " attrs="{'invisible': ['|',('state', '=', 'draft'), ('type','<>','in_invoice')]}"/>
|
||||
<label string="Refund " attrs="{'invisible': ['|',('state', '=', 'draft'), ('type','<>','in_refund')]}"/>
|
||||
<label string="Draft Bill" attrs="{'invisible': ['|',('state','!=','draft'), ('type','!=','in_invoice')]}"/>
|
||||
<label string="Draft Refund" attrs="{'invisible': ['|',('state','!=','draft'), ('type','!=','in_refund')]}"/>
|
||||
<label string="Bill " attrs="{'invisible': ['|',('state', '=', 'draft'), ('type','!=','in_invoice')]}"/>
|
||||
<label string="Refund " attrs="{'invisible': ['|',('state', '=', 'draft'), ('type','!=','in_refund')]}"/>
|
||||
<h1 class="mt0">
|
||||
<field name="number" class="oe_inline" attrs="{'invisible': [('state', '=', 'draft')]}"/>
|
||||
</h1>
|
||||
@@ -364,10 +364,10 @@
|
||||
</div>
|
||||
<field name="has_outstanding" invisible="1"/>
|
||||
<sheet string="Invoice">
|
||||
<label string="Refund" attrs="{'invisible': ['|',('state','=','draft'), ('type','<>','out_refund')]}"/>
|
||||
<label string="Refund" attrs="{'invisible': ['|',('state','=','draft'), ('type','!=','out_refund')]}"/>
|
||||
<h1 class="mt0">
|
||||
<label string="Draft Invoice" attrs="{'invisible': ['|',('state','not in',('draft',)), ('type','<>','out_invoice')]}"/>
|
||||
<label string="Draft Refund" attrs="{'invisible': ['|',('state','not in',('draft',)), ('type','<>','out_refund')]}"/>
|
||||
<label string="Draft Invoice" attrs="{'invisible': ['|',('state','not in',('draft',)), ('type','!=','out_invoice')]}"/>
|
||||
<label string="Draft Refund" attrs="{'invisible': ['|',('state','not in',('draft',)), ('type','!=','out_refund')]}"/>
|
||||
<field name="number" readonly="1" class="oe_inline" attrs="{'invisible': [('state','in',('draft',))]}"/>
|
||||
</h1>
|
||||
<field name="type" invisible="1"/>
|
||||
|
||||
@@ -13,18 +13,18 @@
|
||||
<field name="filter_refund" attrs="{'invisible': [('refund_only','=',True)]}" widget="radio"/>
|
||||
</group>
|
||||
<group>
|
||||
<div attrs="{'invisible':['|',('refund_only','=',True),('filter_refund','<>','refund')]}" class="oe_grey" colspan="4">
|
||||
<div attrs="{'invisible':['|',('refund_only','=',True),('filter_refund','!=','refund')]}" class="oe_grey" colspan="4">
|
||||
You will be able to edit and validate this
|
||||
credit note directly or keep it draft,
|
||||
waiting for the document to be issued by
|
||||
your supplier/customer.
|
||||
</div>
|
||||
<div attrs="{'invisible':['|',('refund_only','=',True),('filter_refund','<>','cancel')]}" class="oe_grey" colspan="4">
|
||||
<div attrs="{'invisible':['|',('refund_only','=',True),('filter_refund','!=','cancel')]}" class="oe_grey" colspan="4">
|
||||
Use this option if you want to cancel an invoice you should not
|
||||
have issued. The credit note will be created, validated and reconciled
|
||||
with the invoice. You will not be able to modify the credit note.
|
||||
</div>
|
||||
<div attrs="{'invisible':['|',('refund_only','=',True),('filter_refund','<>','modify')]}" class="oe_grey" colspan="4">
|
||||
<div attrs="{'invisible':['|',('refund_only','=',True),('filter_refund','!=','modify')]}" class="oe_grey" colspan="4">
|
||||
Use this option if you want to cancel an invoice and create a new
|
||||
one. The credit note will be created, validated and reconciled
|
||||
with the current invoice. A new, draft, invoice will be created
|
||||
|
||||
@@ -149,8 +149,8 @@
|
||||
<group string="Calculations">
|
||||
<field name="category_id"/>
|
||||
<field name="amount_select"/>
|
||||
<field name="amount_fix" attrs="{'readonly':[('amount_select','<>','fix')]}"/>
|
||||
<field name="amount_percentage" attrs="{'readonly':[('amount_select','<>','percentage')]}"/>
|
||||
<field name="amount_fix" attrs="{'readonly':[('amount_select','!=','fix')]}"/>
|
||||
<field name="amount_percentage" attrs="{'readonly':[('amount_select','!=','percentage')]}"/>
|
||||
<field name="sequence"/>
|
||||
</group>
|
||||
<field name="note"/>
|
||||
@@ -236,7 +236,7 @@
|
||||
</div>
|
||||
<field name="contract_id" domain="[('employee_id','=',employee_id),('date_start','<=',date_to),'|',('date_end','>=',date_from),('date_end','=',False)]" context="{'default_employee_id': employee_id}"/>
|
||||
<field name="number"/>
|
||||
<field name="struct_id" attrs="{'required':[('contract_id','<>',False)]}"/>
|
||||
<field name="struct_id" attrs="{'required':[('contract_id','!=',False)]}"/>
|
||||
<field name="name"/>
|
||||
<field name="credit_note"/>
|
||||
</group>
|
||||
@@ -590,17 +590,17 @@
|
||||
<group col="4">
|
||||
<separator colspan="4" string="Conditions"/>
|
||||
<field name="condition_select"/><newline/>
|
||||
<field name="condition_python" attrs="{'invisible':[('condition_select','<>','python')], 'required': [('condition_select','=','python')]}" colspan="4"/> <newline/>
|
||||
<field name="condition_range" attrs="{'invisible':[('condition_select','<>','range')], 'required':[('condition_select','=','range')]}"/><newline/>
|
||||
<field name="condition_range_min" colspan="2" attrs="{'invisible':[('condition_select','<>','range')], 'required':[('condition_select','=','range')]}"/><newline/>
|
||||
<field name="condition_range_max" colspan="2" attrs="{'invisible':[('condition_select','<>','range')], 'required':[('condition_select','=','range')]}"/><newline/>
|
||||
<field name="condition_python" attrs="{'invisible':[('condition_select','!=','python')], 'required': [('condition_select','=','python')]}" colspan="4"/> <newline/>
|
||||
<field name="condition_range" attrs="{'invisible':[('condition_select','!=','range')], 'required':[('condition_select','=','range')]}"/><newline/>
|
||||
<field name="condition_range_min" colspan="2" attrs="{'invisible':[('condition_select','!=','range')], 'required':[('condition_select','=','range')]}"/><newline/>
|
||||
<field name="condition_range_max" colspan="2" attrs="{'invisible':[('condition_select','!=','range')], 'required':[('condition_select','=','range')]}"/><newline/>
|
||||
<separator colspan="4" string="Computation"/>
|
||||
<field name="amount_select"/><newline/>
|
||||
<field name="amount_percentage_base" attrs="{'invisible':[('amount_select','<>','percentage')], 'required': [('amount_select','=','percentage')]}"/><newline/>
|
||||
<field name="amount_percentage_base" attrs="{'invisible':[('amount_select','!=','percentage')], 'required': [('amount_select','=','percentage')]}"/><newline/>
|
||||
<field name="quantity" attrs="{'invisible':[('amount_select','=','code')], 'required':[('amount_select','!=','code')]}"/><newline/>
|
||||
<field name="amount_fix" attrs="{'invisible':[('amount_select','<>','fix')], 'required':[('amount_select','=','fix')]}"/><newline/>
|
||||
<field colspan="4" name="amount_python_compute" attrs="{'invisible':[('amount_select','<>','code')], 'required':[('amount_select','=','code')]}"/>
|
||||
<field name="amount_percentage" attrs="{'invisible':[('amount_select','<>','percentage')], 'required':[('amount_select','=','percentage')]}"/>
|
||||
<field name="amount_fix" attrs="{'invisible':[('amount_select','!=','fix')], 'required':[('amount_select','=','fix')]}"/><newline/>
|
||||
<field colspan="4" name="amount_python_compute" attrs="{'invisible':[('amount_select','!=','code')], 'required':[('amount_select','=','code')]}"/>
|
||||
<field name="amount_percentage" attrs="{'invisible':[('amount_select','!=','percentage')], 'required':[('amount_select','=','percentage')]}"/>
|
||||
<separator colspan="4" string="Company Contribution"/>
|
||||
<field name="register_id"/>
|
||||
</group>
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
<group class="o_label_nowrap">
|
||||
<field name="public" widget="radio" string="Who can follow the group's activities?"/>
|
||||
<field name="group_public_id"
|
||||
attrs="{'invisible': [('public','<>','groups')], 'required': [('public','=','groups')]}"
|
||||
attrs="{'invisible': [('public','!=','groups')], 'required': [('public','=','groups')]}"
|
||||
/>
|
||||
<field name="group_ids" widget="many2many_tags"/>
|
||||
</group>
|
||||
|
||||
@@ -353,7 +353,7 @@
|
||||
attrs="{'invisible': [('mailing_model', '=', 'mail.mass_mailing.list')]}"
|
||||
options="{'model': 'mailing_model'}"
|
||||
context="{'search_default_not_opt_out':1}"/>
|
||||
<div attrs="{'invisible': [('mailing_model', '<>', 'mail.mass_mailing.list')]}">
|
||||
<div attrs="{'invisible': [('mailing_model', '!=', 'mail.mass_mailing.list')]}">
|
||||
<label for="contact_list_ids" string="Select mailing lists:" class="oe_edit_only"/>
|
||||
<field name="contact_list_ids" widget="many2many_tags"
|
||||
placeholder="Select mailing lists..." class="oe_inline"/>
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
<group>
|
||||
<field name="sale_journal" domain="[('type','=','sale')]"/>
|
||||
<field name="account_move" readonly="1"
|
||||
attrs="{'invisible':[('state','<>','done')]}"/>
|
||||
attrs="{'invisible':[('state','!=','done')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
|
||||
@@ -29,21 +29,21 @@
|
||||
<record id="filter_purchase_order_monthly_purchases" model="ir.filters">
|
||||
<field name="name">Monthly Purchases</field>
|
||||
<field name="model_id">purchase.report</field>
|
||||
<field name="domain">[('state','<>','cancel')]</field>
|
||||
<field name="domain">[('state','!=','cancel')]</field>
|
||||
<field name="user_id" eval="False"/>
|
||||
<field name="context">{'group_by': ['category_id'], 'col_group_by': ['date_order:month'], 'measures': ['unit_quantity']}</field>
|
||||
</record>
|
||||
<record id="filter_purchase_order_price_per_supplier" model="ir.filters">
|
||||
<field name="name">Price Per Vendor</field>
|
||||
<field name="model_id">purchase.report</field>
|
||||
<field name="domain">[('state','<>','draft'),('state','<>','cancel')]</field>
|
||||
<field name="domain">[('state','!=','draft'),('state','!=','cancel')]</field>
|
||||
<field name="user_id" eval="False"/>
|
||||
<field name="context">{'group_by': ['partner_id'], 'col_group_by': ['product_id'], 'measures': ['price_average']}</field>
|
||||
</record>
|
||||
<record id="filter_purchase_order_average_delivery_time" model="ir.filters">
|
||||
<field name="name">Average Delivery Time</field>
|
||||
<field name="model_id">purchase.report</field>
|
||||
<field name="domain">[('state','<>','draft'),('state','<>','cancel')]</field>
|
||||
<field name="domain">[('state','!=','draft'),('state','!=','cancel')]</field>
|
||||
<field name="user_id" eval="False"/>
|
||||
<field name="context">{'group_by': ['partner_id'], 'measures': ['delay_pass']}</field>
|
||||
</record>
|
||||
@@ -55,7 +55,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<search string="Purchase Orders">
|
||||
<filter string="Quotations" name="quotes" domain="[('state','=','draft')]"/>
|
||||
<filter string="Orders" name="orders" domain="[('state','<>','draft'),('state','<>','cancel')]"/>
|
||||
<filter string="Orders" name="orders" domain="[('state','!=','draft'),('state','!=','cancel')]"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="product_id"/>
|
||||
<group expand="0" string="Extended Filters">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Company">
|
||||
<field name="logo" invisible="1"/>
|
||||
<div class="alert alert-warning" attrs="{'invisible': [('logo','<>',False)]}">
|
||||
<div class="alert alert-warning" attrs="{'invisible': [('logo','!=',False)]}">
|
||||
<p>
|
||||
<strong>No logo found!</strong>
|
||||
To get a beautiful document, you should review your
|
||||
|
||||
@@ -573,7 +573,7 @@
|
||||
<field name="model">sale.order.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search Sales Order">
|
||||
<filter string="To Invoice" domain="[('qty_to_invoice','<>', 0)]" help="Sales Order Lines ready to be invoiced"/>
|
||||
<filter string="To Invoice" domain="[('qty_to_invoice','!=', 0)]" help="Sales Order Lines ready to be invoiced"/>
|
||||
<separator/>
|
||||
<filter string="My Sales Order Lines" domain="[('salesman_id','=',uid)]" help="Sales Order Lines related to a Sales Order of mine"/>
|
||||
<field name="order_id"/>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<attribute name="attrs">{'invisible': [('type','!=','service')]}</attribute>
|
||||
</xpath>
|
||||
<field name="track_service" position="after">
|
||||
<field name="project_id" attrs="{'invisible':['|', ('type','!=','service'), ('track_service', '<>', 'task')]}"/>
|
||||
<field name="project_id" attrs="{'invisible':['|', ('type','!=','service'), ('track_service', '!=', 'task')]}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -403,7 +403,7 @@
|
||||
<separator/>
|
||||
<filter name="late" string="Late" domain="[('min_date','<', time.strftime('%%Y-%%m-%%d %%H:%%M:%%S'))]" help="Pickings that are late on scheduled time"/>
|
||||
<separator/>
|
||||
<filter name="backorder" string="Backorders" domain="[('backorder_id','<>', False)]" help="Remaining parts of picking partially processed"/>
|
||||
<filter name="backorder" string="Backorders" domain="[('backorder_id','!=', False)]" help="Remaining parts of picking partially processed"/>
|
||||
<separator/>
|
||||
<filter string="My Activities" name="activities_my"
|
||||
domain="[('activity_ids.user_id', '=', uid)]"/>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
<button string="Automatic Assignation" name="action_assign_partner" type="object" class="btn-link"/>
|
||||
|
||||
<field name="partner_assigned_id" domain="[('grade_id','<>',False)]"/>
|
||||
<field name="partner_assigned_id" domain="[('grade_id','!=',False)]"/>
|
||||
<button string="Send Email" type="action" class="btn-link"
|
||||
attrs="{'invisible':[('partner_assigned_id','=',False)]}"
|
||||
name="%(crm_lead_forward_to_partner_act)d"
|
||||
@@ -82,7 +82,7 @@
|
||||
</div>
|
||||
<button string="Automatic Assignation" name="action_assign_partner" type="object" class="btn-link"/>
|
||||
|
||||
<field name="partner_assigned_id" domain="[('grade_id','<>',False)]"/>
|
||||
<field name="partner_assigned_id" domain="[('grade_id','!=',False)]"/>
|
||||
<button string="Send Email" type="action" class="btn-link"
|
||||
attrs="{'invisible':[('partner_assigned_id','=',False)]}"
|
||||
name="%(crm_lead_forward_to_partner_act)d"
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<field name="res_model">forum.post</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="domain">[('documentation_toc_id','<>', False)]</field>
|
||||
<field name="domain">[('documentation_toc_id','!=', False)]</field>
|
||||
</record>
|
||||
<menuitem id="menu_forum_doc_posts"
|
||||
parent="website_forum.menu_website_forum" name="Documentation Posts"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<form string="Create Menu">
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="menu_id" domain="[('parent_id','<>',False)]"/>
|
||||
<field name="menu_id" domain="[('parent_id','!=',False)]"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button name="menu_create" string="Create _Menu" type="object" class="btn-primary"/>
|
||||
|
||||
@@ -281,9 +281,9 @@
|
||||
<group>
|
||||
<field name="name" string="Contact Name" attrs="{'required' : [('type', '=', 'contact')]}"/>
|
||||
<field name="title" placeholder="e.g. Mr."
|
||||
attrs="{'invisible': [('type','<>', 'contact')]}"/>
|
||||
attrs="{'invisible': [('type','!=', 'contact')]}"/>
|
||||
<field name="function" placeholder="e.g. Sales Director"
|
||||
attrs="{'invisible': [('type','<>', 'contact')]}"/>
|
||||
attrs="{'invisible': [('type','!=', 'contact')]}"/>
|
||||
<field name="email"/>
|
||||
<field name="phone" widget="phone"/>
|
||||
<field name="mobile" widget="phone"/>
|
||||
@@ -512,7 +512,7 @@
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.partner</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="domain">[('supplier','<>',1),('customer','<>',1)]</field>
|
||||
<field name="domain">[('supplier','!=',1),('customer','!=',1)]</field>
|
||||
<field name="filter" eval="True"/>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user