[IMP] *: set name on page elements

page is an element that is often used for xpath

closes odoo/odoo#41718

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Yenthe666
2019-12-16 15:10:24 +00:00
committed by Martin Trigaux
parent b5db1c61ee
commit 7876af3ad0
62 changed files with 155 additions and 140 deletions
+2 -2
View File
@@ -21,7 +21,7 @@
attrs="{'readonly': [('parent_state', '=', 'posted')]}"/>
</group>
<notebook colspan="4">
<page string="Information">
<page string="Information" name="information">
<group>
<group string="Amount">
<field name="account_id" options="{'no_create': True}" domain="[('company_id', '=', company_id)]" attrs="{'readonly':[('parent_state','=','posted')]}"/>
@@ -76,7 +76,7 @@
</group>
</group>
</page>
<page string="Analytic Lines" groups="analytic.group_analytic_accounting">
<page string="Analytic Lines" name="analytic_lines" groups="analytic.group_analytic_accounting">
<field name="date" invisible="1"/>
<field name="analytic_line_ids" context="{'tree_view_ref':'analytic.view_account_analytic_line_tree', 'default_general_account_id':account_id, 'default_name': name, 'default_date':date, 'amount': (debit or 0.0)-(credit or 0.0)}"/>
</page>
+2 -2
View File
@@ -1178,7 +1178,7 @@ action = model.setting_init_bank_account_action()
</group>
</group>
<notebook>
<page string="Definition">
<page string="Definition" name="definition">
<div attrs="{'invisible': [('amount_type', '=', 'group')]}">
<field name="country_id" invisible="1"/>
<group string="Repartition for Invoices">
@@ -1197,7 +1197,7 @@ action = model.setting_init_bank_account_action()
</tree>
</field>
</page>
<page string="Advanced Options">
<page string="Advanced Options" name="advanced_options">
<group>
<group>
<field name="description" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
@@ -29,10 +29,10 @@
</group>
</group>
<notebook>
<page string="Description">
<page string="Description" name="description">
<field name="desc" nolabel="1"/>
</page>
<page string="Expression">
<page string="Expression" name="expression">
<group string="Python Code">
<field colspan="4" name="code_exec" nolabel="1"/>
</group>
+1 -1
View File
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='access_rights']" position="after">
<page string="Oauth">
<page string="Oauth" name="oauth">
<group>
<field name="oauth_provider_id"/>
<field name="oauth_uid"/>
+1 -1
View File
@@ -225,7 +225,7 @@
</group>
<notebook>
<page string="Internal Notes">
<page string="Internal Notes" name="internal_notes">
<field name="description" placeholder="Add a description..."/>
</page>
<page name="extra" string="Extra Info" attrs="{'invisible': [('type', '=', 'opportunity')]}">
+1 -1
View File
@@ -666,7 +666,7 @@
</group>
</group>
<notebook groups="base.group_no_one">
<page string="Registration Mails">
<page string="Registration Mails" name="registration_mails">
<field name="mail_registration_ids">
<tree string="Registration mail" editable="bottom">
<field name="registration_id"/>
+1 -1
View File
@@ -89,7 +89,7 @@
<field name="inherit_id" ref="event.view_event_form"/>
<field name="arch" type="xml">
<page name="event_communication" position="before">
<page string="Tickets">
<page string="Tickets" name="tickets">
<field name="event_ticket_ids" context="{'default_name': name}" mode="tree,kanban">
<tree string="Tickets" editable="bottom">
<field name="name"/>
+2 -2
View File
@@ -35,7 +35,7 @@
<field name="date"/>
</group>
<notebook>
<page string="Server &amp; Login">
<page string="Server &amp; Login" name="server_login_details">
<group>
<group attrs="{'invisible' : [('server_type', '=', 'local')]}" string="Server Information">
<field name="server" colspan="2" attrs="{'required' : [('server_type', '!=', 'local')]}" />
@@ -55,7 +55,7 @@
</group>
</group>
</page>
<page string="Advanced" groups="base.group_no_one">
<page string="Advanced" name="advanced_options" groups="base.group_no_one">
<group string="Advanced Options" col="4">
<field name="priority"/>
<field name="attach"/>
+3 -3
View File
@@ -77,7 +77,7 @@
</group>
</group>
<notebook>
<page string="Goals">
<page string="Goals" name="goals">
<field name="line_ids" nolabel="1" colspan="4">
<tree string="Line List" editable="bottom" >
<field name="sequence" widget="handle"/>
@@ -89,7 +89,7 @@
</field>
<field name="description" placeholder="Describe the challenge: what is does, who it targets, why it matters..."/>
</page>
<page string="Reward">
<page string="Reward" name="reward">
<group>
<field name="reward_id" attrs="{'required': [('reward_realtime','=', True)]}" />
<field name="reward_first_id" />
@@ -102,7 +102,7 @@
<p>Badges are granted when a challenge is finished. This is either at the end of a running period (eg: end of the month for a monthly challenge), at the end date of a challenge (if no periodicity is set) or when the challenge is manually closed.</p>
</div>
</page>
<page string="Advanced Options">
<page string="Advanced Options" name="advanced_options">
<group string="Subscriptions">
<field name="invited_user_ids" widget="many2many_tags" />
</group>
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<notebook colspan="4" position="inside">
<page string="Calendar">
<page string="Calendar" name="calendar">
<group>
<field name="google_calendar_rtoken"/>
<field name="google_calendar_token"/>
@@ -8,7 +8,7 @@
<field name="arch" type="xml">
<xpath expr="//page[@name='public']" position="after">
<page string="Received Badges" attrs="{'invisible': [('user_id', '=', False)]}">
<page string="Received Badges" name="received_badges" attrs="{'invisible': [('user_id', '=', False)]}">
<field name="has_badges" invisible="1"/>
<button string="Grant a Badge" type="action" name="%(action_reward_wizard)d"/> to reward this employee for a good action
<div class="o_field_nocontent" attrs="{'invisible': [('has_badges', '=', True)]}">
@@ -32,7 +32,7 @@
<field name="arch" type="xml">
<xpath expr="//page[@name='public']" position="after">
<page string="Received Badges" attrs="{'invisible': [('user_id', '=', False)]}">
<page string="Received Badges" name="received_badges" attrs="{'invisible': [('user_id', '=', False)]}">
<field name="has_badges" invisible="1"/>
<button string="Grant a Badge" type="action" name="%(action_reward_wizard)d"/> to reward this employee for a good action
<div class="o_field_nocontent" attrs="{'invisible': [('has_badges', '=', True)]}">
@@ -95,7 +95,7 @@
</h1>
</div>
<notebook>
<page string="Operators">
<page string="Operators" name="operators">
<group>
<field name="user_ids" nolabel="1" colspan="2">
<kanban>
@@ -120,7 +120,7 @@
</p>
</group>
</page>
<page string="Options">
<page string="Options" name="options">
<group>
<group string="Livechat Button">
<field name="button_text"/>
@@ -147,13 +147,13 @@
</group>
</group>
</page>
<page string="Channel Rules">
<page string="Channel Rules" name="channel_rules">
<span class="text-muted">Define rules for your live support channel. You can apply an action for the given URL, and per country.<br />To identify the country, GeoIP must be installed on your server, otherwise, the countries of the rule will not be taken into account.</span>
<group>
<field name="rule_ids" nolabel="1"/>
</group>
</page>
<page string="Widget">
<page string="Widget" name="configuration_widget">
<group attrs='{"invisible": [["web_page", "!=", False]]}'>
<div class="alert alert-warning mt4 mb16" role="alert">
Save your Channel to get your configuration widget.
@@ -6,14 +6,14 @@
<field name="arch" type="xml">
<form string="FEC File Generation">
<notebook>
<page string="Options">
<page string="Options" name="options">
<group>
<field name="date_from"/>
<field name="date_to"/>
<field name="export_type" groups="base.group_no_one"/>
</group>
</page>
<page string="Technical Info">
<page string="Technical Info" name="technical_info">
<group>
<div>
The encoding of this text file is UTF-8. The structure of file is CSV separated by pipe '|'.
+4 -2
View File
@@ -66,7 +66,7 @@
<field name="l10n_it_tax_system"/>
</xpath>
<xpath expr="//page" position="after">
<page string="Electronic Invoicing">
<page string="Electronic Invoicing" name="electronic_invoicing">
<group>
<separator string="Economic and Administrative Index" colspan="4"/>
<div colspan="4">
@@ -170,7 +170,9 @@
</div>
</xpath>
<xpath expr="//page[@name='other_info']" position="after">
<page string="Electronic Invoicing" attrs="{'invisible': [('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}">
<page string="Electronic Invoicing"
name="electronic_invoicing"
attrs="{'invisible': [('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}">
<group>
<group>
<field name="l10n_it_stamp_duty"/>
+3 -3
View File
@@ -124,7 +124,7 @@
<field name="alias_contact" class="oe_inline" invisible="1"/>
</group>
<notebook>
<page string="Privacy">
<page string="Privacy" name="privacy">
<group class="o_label_nowrap">
<field name="public" widget="radio" string="Who can follow the group's activities?"/>
<field name="group_public_id"
@@ -134,7 +134,7 @@
string="Auto Subscribe Groups"/>
</group>
</page>
<page string="Members">
<page string="Members" name="members">
<field name="channel_last_seen_partner_ids" mode="tree" context="{'active_test': False}">
<tree string="Members" editable="bottom">
<field name="partner_id" required="1"/>
@@ -142,7 +142,7 @@
</tree>
</field>
</page>
<page string="Moderation" attrs="{'invisible': [('moderation', '=', False)]}">
<page string="Moderation" name="moderation" attrs="{'invisible': [('moderation', '=', False)]}">
<group>
<field name="moderator_ids" widget="many2many_tags"/>
<field name="moderation_notify"/>
+4 -4
View File
@@ -30,10 +30,10 @@
<field name="scheduled_date"/>
</group>
<notebook>
<page string="Body">
<page string="Body" name="body">
<field name="body_html" widget="html" options="{'style-inline': true}"/>
</page>
<page string="Advanced" groups="base.group_no_one">
<page string="Advanced" name="advanced" groups="base.group_no_one">
<group>
<group string="Status">
<field name="auto_delete"/>
@@ -50,10 +50,10 @@
</group>
</group>
</page>
<page string="Attachments">
<page string="Attachments" name="attachments">
<field name="attachment_ids"/>
</page>
<page string="Failure Reason" attrs="{'invisible': [('state', '!=', 'exception')]}">
<page string="Failure Reason" name="failure_reason" attrs="{'invisible': [('state', '!=', 'exception')]}">
<field name="failure_reason"/>
</page>
</notebook>
+3 -3
View File
@@ -45,10 +45,10 @@
</group>
</group>
<notebook>
<page string="Body">
<page string="Body" name="body">
<field name="body" options="{'style-inline': true}"/>
</page>
<page string="Gateway">
<page string="Gateway" name="gateway">
<group>
<group>
<field name="reply_to"/>
@@ -60,7 +60,7 @@
</group>
</group>
</page>
<page string="Recipients">
<page string="Recipients" name="recipients">
<group>
<group>
<field name="partner_ids" widget="many2many_tags"/>
+4 -4
View File
@@ -41,13 +41,13 @@
</group>
</div>
<notebook>
<page string="Content">
<page string="Content" name="content">
<label for="subject"/>
<h2 style="display: inline-block;"><field name="subject" placeholder="Subject (placeholders may be used here)"/></h2>
<field name="body_html" widget="html" options="{'style-inline': true}"/>
<field name="attachment_ids" widget="many2many_binary"/>
</page>
<page string="Email Configuration">
<page string="Email Configuration" name="email_configuration">
<group>
<field name="email_from"
placeholder="Override author's email"/>
@@ -64,7 +64,7 @@
<field name="scheduled_date" string="Scheduled Send Date"/>
</group>
</page>
<page string="Advanced Settings">
<page string="Advanced Settings" name="advanced_settings">
<group>
<field name="lang"/>
<field name="mail_server_id"/>
@@ -73,7 +73,7 @@
<field name="report_name" attrs="{'invisible':[('report_template','=',False)]}"/>
</group>
</page>
<page string="Dynamic Placeholder Generator">
<page string="Dynamic Placeholder Generator" name="dynamic_placeholder_generator">
<group>
<field name="model_object_field"
domain="[('model_id','=',model_id),('ttype','!=','one2many'),('ttype','!=','many2many')]"/>
@@ -363,10 +363,10 @@
</group>
</group>
<notebook>
<page string="Description">
<page string="Description" name="description">
<field name="note"/>
</page>
<page string="Product Information">
<page string="Product Information" name="product_information">
<group>
<group>
<field name="partner_id"/>
@@ -380,7 +380,7 @@
</group>
</group>
</page>
<page string="Maintenance">
<page string="Maintenance" name="maintenance">
<group>
<group name="maintenance">
<field name="next_action_date" class="oe_read_only" string="Next Preventive Maintenance"/>
@@ -177,7 +177,9 @@
'inline-field': 'body_html'
}" attrs="{'readonly': [('state', 'in', ('sending', 'done'))]}"/>
</page>
<page string="Dynamic Placeholder Generator" groups="base.group_no_one">
<page string="Dynamic Placeholder Generator"
name="dynamic_placeholder_generator"
groups="base.group_no_one">
<group>
<field name="model_object_field" attrs="{'invisible': True}"/>
<field name="model_object_field"
@@ -190,7 +192,7 @@
<field name="copyvalue"/>
</group>
</page>
<page string="Settings">
<page string="Settings" name="settings">
<group>
<group>
<field name="name" required="False" groups="base.group_no_one" string="Name"/>
@@ -16,7 +16,7 @@
</button>
</xpath>
<xpath expr="//notebook" position="inside">
<page string="Mailings" attrs="{'invisible': [('mailing_mail_count', '=', 0)]}">
<page string="Mailings" name="mailings" attrs="{'invisible': [('mailing_mail_count', '=', 0)]}">
<field name="mailing_mail_ids" readonly="1" nolabel="1">
<tree>
<field name="subject"/>
@@ -18,7 +18,7 @@
</button>
</xpath>
<xpath expr="//notebook" position="inside">
<page string="SMS" attrs="{'invisible': [('mailing_sms_count', '=', 0)]}">
<page string="SMS" name="sms" attrs="{'invisible': [('mailing_sms_count', '=', 0)]}">
<group>
<field name="mailing_sms_ids" readonly="1" nolabel="1">
<tree>
+1 -1
View File
@@ -104,7 +104,7 @@
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Membership">
<page string="Membership" name="membership">
<group>
<group>
<field name="free_member"/>
+6 -3
View File
@@ -71,7 +71,7 @@
</group>
</group>
<notebook>
<page string="Components">
<page string="Components" name="components">
<field name="bom_line_ids" widget="one2many" context="{'default_parent_product_tmpl_id': product_tmpl_id, 'default_product_id': False, 'default_company_id': company_id, 'default_routing_id': routing_id}">
<tree string="Components" editable="bottom">
<field name="company_id" invisible="1"/>
@@ -92,7 +92,10 @@
</tree>
</field>
</page>
<page string="By-products" attrs="{'invisible': [('type','!=','normal')]}" groups="mrp.group_mrp_byproducts">
<page string="By-products"
name="by_products"
attrs="{'invisible': [('type','!=','normal')]}"
groups="mrp.group_mrp_byproducts">
<field name="byproduct_ids" context="{'form_view_ref' : 'mrp.mrp_bom_byproduct_form_view', 'default_company_id': company_id, 'default_routing_id': routing_id}">
<tree string="By-products" editable="top">
<field name="company_id" invisible="1"/>
@@ -104,7 +107,7 @@
</tree>
</field>
</page>
<page string="Miscellaneous">
<page string="Miscellaneous" name="miscellaneous">
<group>
<group>
<field name="ready_to_produce" attrs="{'invisible': [('type','!=','normal')]}" string="Manufacturing Readiness" groups="mrp.group_mrp_routings"/>
+3 -3
View File
@@ -173,10 +173,10 @@
</group>
</group>
<notebook>
<page string="Components">
<page string="Components" name="components">
<field name="move_raw_ids" context="{'final_lots': show_final_lots, 'tree_view_ref': 'mrp.view_stock_move_raw_tree', 'form_view_ref': 'mrp.view_stock_move_lots', 'default_location_id': location_src_id, 'default_location_dest_id': production_location_id, 'default_state': 'draft', 'default_raw_material_production_id': id, 'default_picking_type_id': picking_type_id}" attrs="{'readonly': ['&amp;', ('state', '!=', 'draft'), ('is_locked', '=', True)]}"/>
</page>
<page string="Finished Products">
<page string="Finished Products" name="finished_products">
<field name="move_finished_ids" invisible="1"/>
<field name="finished_move_line_ids" context="{'form_view_ref': 'mrp.view_finisehd_move_line'}" attrs="{'readonly': [('is_locked', '=', True)], 'invisible': [('finished_move_line_ids', '=', [])]}">
<tree default_order="done_move" editable="bottom" create="0" delete="0" decoration-muted="state in ('done', 'cancel')">
@@ -194,7 +194,7 @@
Use the Produce button or process the work orders to create some finished products.
</p>
</page>
<page string="Miscellaneous" groups="stock.group_stock_multi_locations">
<page string="Miscellaneous" name="miscellaneous" groups="stock.group_stock_multi_locations">
<group>
<group>
<field name="picking_type_id" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
+4 -4
View File
@@ -49,10 +49,10 @@
</group>
</group>
<notebook>
<page string="Description">
<page string="Description" name="description">
<field name="note"/>
</page>
<page string="Work Sheet">
<page string="Work Sheet" name="worksheet">
<group>
<field name="worksheet_type" widget="radio"/>
<field name="worksheet" widget="pdf_viewer" attrs="{'invisible': [('worksheet_type', '=', 'google_slide')]}"/>
@@ -95,10 +95,10 @@
</group>
</group>
<notebook>
<page string="Work Center Operations">
<page string="Work Center Operations" name="work_center_operations">
<field name="operation_ids" context="{'default_routing_id': id}"/>
</page>
<page string="Notes">
<page string="Notes" name="notes">
<field name="note"/>
</page>
</notebook>
+1 -1
View File
@@ -334,7 +334,7 @@
</group>
</group>
<notebook>
<page string="General Information">
<page string="General Information" name="general_info">
<group>
<group string="Production Information" name="capacity">
<label for="time_efficiency"/>
+5 -3
View File
@@ -141,12 +141,14 @@
</group>
</group>
<notebook>
<page string="Work Instruction" attrs="{'invisible': [('worksheet', '=', False),('worksheet_google_slide', '=', False)]}">
<page string="Work Instruction"
name="work_instructions"
attrs="{'invisible': [('worksheet', '=', False),('worksheet_google_slide', '=', False)]}">
<field name="worksheet_type" invisible="1"/>
<field name="worksheet_google_slide" widget="embed_viewer" attrs="{'invisible': [('worksheet_type', '=', 'pdf')]}"/>
<field name="worksheet" widget="pdf_viewer" attrs="{'invisible': [('worksheet_type', '=', 'google_slide')]}"/>
</page>
<page string="Current Production">
<page string="Current Production" name="current_production">
<group>
<group>
<field name="qty_producing" string="Quantity in Production" attrs="{'readonly': ['|', ('product_tracking', '=', 'serial'), ('state', 'in', ('done', 'cancel'))]}"/>
@@ -184,7 +186,7 @@
</tree>
</field>
</page>
<page string="Time Tracking" groups="mrp.group_mrp_manager">
<page string="Time Tracking" name="time_tracking" groups="mrp.group_mrp_manager">
<group>
<group>
<label for="date_planned_start" string="Planned Date"/>
+6 -4
View File
@@ -40,7 +40,7 @@
<group name="acquirer">
</group>
</page>
<page string="Configuration">
<page string="Configuration" name="configuration">
<group name="acquirer_config">
<group string="Payment Form" name="payment_form">
<field name="display_as" placeholder="If not defined, the acquirer name will be used."/>
@@ -62,7 +62,7 @@
</group>
</group>
</page>
<page string="Fees" attrs="{'invisible': [('fees_implemented', '=', False)]}">
<page string="Fees" name="fees" attrs="{'invisible': [('fees_implemented', '=', False)]}">
<group name="payment_fees">
<field name="fees_active"/>
<field name="fees_dom_fixed" attrs="{'invisible': [('fees_active', '=', False)]}"/>
@@ -71,7 +71,9 @@
<field name="fees_int_var" attrs="{'invisible': [('fees_active', '=', False)]}"/>
</group>
</page>
<page string="Messages" attrs="{'invisible': [('module_id', '=', True), ('module_state', '!=', 'installed')]}">
<page string="Messages"
name="messages"
attrs="{'invisible': [('module_id', '=', True), ('module_state', '!=', 'installed')]}">
<group>
<field name="pre_msg"/>
<field name="auth_msg" attrs="{'invisible': [('authorize_implemented', '=', False)]}"/>
@@ -405,7 +407,7 @@
<h1><field name="name" placeholder="Name"/></h1>
</div>
<notebook>
<page string="Acquirers list">
<page string="Acquirers list" name="acquirers">
<field nolabel="1" name="acquirer_ids"/>
</page>
</notebook>
@@ -42,7 +42,7 @@
<field name="invoice_group" invisible="1"/>
</group>
<notebook colspan="4">
<page string="Products">
<page string="Products" name="products">
<field name="lines" colspan="4" nolabel="1">
<tree string="Order lines" editable="bottom">
<field name="product_id"/>
@@ -93,7 +93,7 @@
</group>
<div class="oe_clear"/>
</page>
<page string="Payments">
<page string="Payments" name="payments">
<field name="payment_ids" colspan="4" nolabel="1">
<tree string="Payments">
<field name="currency_id" invisible="1" />
@@ -119,7 +119,7 @@
</group>
</group>
</page>
<page string="Notes" >
<page string="Notes" name="notes">
<field name="note"/>
</page>
</notebook>
@@ -70,7 +70,7 @@
<field name="stop_at" attrs="{'invisible' : [('state', '!=', 'closed')]}"/>
</group>
<notebook>
<page string="Cash Control" attrs="{'invisible' : [('cash_control', '=', False)]}">
<page string="Cash Control" name="cash_control" attrs="{'invisible' : [('cash_control', '=', False)]}">
<group class="col-md-12" style="margin-left: 140px;">
<group class="col-md-7">
<div style="margin:0;padding:0;">
@@ -25,7 +25,7 @@
<field name="create_variant" widget="radio" attrs="{'readonly': [('is_used_on_products', '=', True)]}"/>
</group>
<notebook>
<page string="Attribute Values">
<page string="Attribute Values" name="attribute_values">
<field name="value_ids" widget="one2many" nolabel="1">
<tree string="Values" editable="bottom">
<field name="sequence" widget="handle"/>
@@ -33,7 +33,7 @@
</tree>
</field>
</page>
<page string="Related Products" attrs="{'invisible': [('is_used_on_products', '=', False)]}">
<page string="Related Products" name="related_products" attrs="{'invisible': [('is_used_on_products', '=', False)]}">
<field name="product_tmpl_ids">
<tree>
<field name="name"/>
@@ -6,7 +6,7 @@
<field name="inherit_id" ref="stock.view_production_lot_form" />
<field name="arch" type="xml">
<xpath expr="//page[@name='description']" position="before">
<page string="Dates" attrs="{'invisible': [('use_expiration_date', '=', False)]}">
<page string="Dates" name="expiration_dates" attrs="{'invisible': [('use_expiration_date', '=', False)]}">
<field name="use_expiration_date" invisible="1"/>
<group>
<group>
@@ -23,7 +23,7 @@
<field name="default_code"/>
</group>
<notebook>
<page string="Margins">
<page string="Margins" name="margins">
<group string="Analysis Criteria">
<field name="date_from"/>
<field name="date_to"/>
+3 -3
View File
@@ -170,7 +170,7 @@
</group>
</group>
<notebook>
<page string="Products">
<page string="Products" name="products">
<field name="order_line"
widget="section_and_note_one2many"
mode="tree,kanban"
@@ -244,10 +244,10 @@
</group>
<group colspan="12">
<notebook>
<page string="Notes">
<page string="Notes" name="notes">
<field name="name"/>
</page>
<page string="Invoices and Incoming Shipments">
<page string="Invoices and Incoming Shipments" name="invoices_incoming_shiptments">
<field name="invoice_lines"/>
</page>
</notebook>
@@ -160,7 +160,7 @@
</group>
</group>
<notebook>
<page string="Products">
<page string="Products" name="products">
<field name="line_ids">
<tree string="Products" editable="bottom">
<field name="product_id" context="{'default_purchase_requisition': 'tenders'}" domain="['|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]"/>
+4 -4
View File
@@ -86,7 +86,7 @@
</group>
</group>
<notebook>
<page string="Parts">
<page string="Parts" name="parts">
<field name="operations" context="{'default_product_uom_qty': product_qty, 'default_company_id': company_id}">
<form string="Operations">
<group>
@@ -145,7 +145,7 @@
</group>
<div class="oe_clear"/>
</page>
<page string="Operations">
<page string="Operations" name="operations">
<field name="fees_lines" context="{'default_company_id': company_id}">
<form string="Fees">
<group>
@@ -176,7 +176,7 @@
</tree>
</field>
</page>
<page string="Extra Info" groups="base.group_no_one">
<page string="Extra Info" name="extra_info" groups="base.group_no_one">
<group>
<group>
<field name="move_id"/>
@@ -187,7 +187,7 @@
</group>
</group>
</page>
<page string="Notes">
<page string="Notes" name="notes">
<field name="internal_notes" placeholder="Add internal notes..."/>
<field name="quotation_notes" placeholder="Add quotation notes..."/>
</page>
@@ -38,7 +38,7 @@
</group>
</group>
<notebook name="main_book">
<page string="Lines">
<page string="Lines" name="order_lines">
<field name="sale_order_template_line_ids" widget="section_and_note_one2many">
<form string="Quotation Template Lines">
<!--
@@ -63,13 +63,13 @@
</group>
</group>
<notebook colspan="4" name="description">
<page string="Description" attrs="{'invisible': [('display_type', '!=', False)]}">
<page string="Description" name="order_description" attrs="{'invisible': [('display_type', '!=', False)]}">
<field name="name" />
</page>
<page string="Section" attrs="{'invisible': [('display_type', '!=', 'line_section')]}">
<page string="Section" name="order_section" attrs="{'invisible': [('display_type', '!=', 'line_section')]}">
<field name="name" />
</page>
<page string="Note" attrs="{'invisible': [('display_type', '!=', 'line_note')]}">
<page string="Note" name="order_note" attrs="{'invisible': [('display_type', '!=', 'line_note')]}">
<field name="name" />
</page>
</notebook>
@@ -97,7 +97,7 @@
</tree>
</field>
</page>
<page string="Optional Products">
<page string="Optional Products" name="optional_products">
<field name="sale_order_template_option_ids">
<tree string="Quotation Template Lines" editable="bottom">
<field name="product_id"/>
@@ -110,7 +110,7 @@
</tree>
</field>
</page>
<page string="Confirmation">
<page string="Confirmation" name="confirmation">
<group>
<field name="require_signature"/>
<field name="require_payment"/>
@@ -14,7 +14,7 @@
</xpath>
<xpath expr="//notebook[@name='description']" position="inside">
<page string="Website Description">
<page string="Website Description" name="website_description">
<field name="website_description" />
</page>
</xpath>
+2 -2
View File
@@ -40,12 +40,12 @@
</group>
</div>
<notebook>
<page string="Content">
<page string="Content" name="content">
<group>
<field name="body" widget="sms_widget" nolabel="1"/>
</group>
</page>
<page string="Dynamic Placeholder Generator" groups="base.group_no_one">
<page string="Dynamic Placeholder Generator" name="dynamic_placeholder_generator" groups="base.group_no_one">
<group>
<field name="model_object_field"
domain="[('model_id','=',model_id),('ttype','!=','one2many'),('ttype','!=','many2many')]"/>
+7 -3
View File
@@ -303,7 +303,9 @@
</group>
<notebook>
<!-- Reservation hidden -->
<page string="Detailed Operations" attrs="{'invisible': ['|', ('show_operations', '=', False), ('show_reserved', '=', True)]}">
<page string="Detailed Operations"
name="detailed_operations_hidden"
attrs="{'invisible': ['|', ('show_operations', '=', False), ('show_reserved', '=', True)]}">
<field name="move_line_nosuggest_ids"
attrs="{'readonly': ['|', '|', ('show_operations', '=', False), ('state', '=', 'cancel'), '&amp;', ('state', '=', 'done'), ('is_locked', '=', True)]}"
context="{'tree_view_ref': 'stock.view_stock_move_line_detailed_operation_tree', 'default_picking_id': id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id, 'default_company_id': company_id}"/>
@@ -314,7 +316,9 @@
</page>
<!-- Reservation displayed -->
<page string="Detailed Operations" attrs="{'invisible': ['|', ('show_operations', '=', False), ('show_reserved', '=', False)]}">
<page string="Detailed Operations"
name="detailed_operations_shown"
attrs="{'invisible': ['|', ('show_operations', '=', False), ('show_reserved', '=', False)]}">
<field name="move_line_ids_without_package"
attrs="{'readonly': ['|', '|', ('show_operations', '=', False), ('state', '=', 'cancel'), '&amp;', ('state', '=', 'done'), ('is_locked', '=', True)]}"
context="{'tree_view_ref': 'stock.view_stock_move_line_detailed_operation_tree', 'default_picking_id': id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id, 'default_company_id': company_id}"/>
@@ -322,7 +326,7 @@
<button class="oe_highlight" name="put_in_pack" type="object" string="Put in Pack" attrs="{'invisible': [('state', 'in', ('draft', 'done', 'cancel'))]}" groups="stock.group_tracking_lot"/>
</page>
<page string="Operations">
<page string="Operations" name="operations">
<field name="move_ids_without_package" attrs="{'readonly': ['|', '&amp;', ('show_operations', '=', True), '|', ('is_locked', '=', True), ('state', '=', 'done'), '&amp;', ('state', '=', 'done'), ('is_locked', '=', True)]}" context="{'default_company_id': company_id, 'picking_type_code': picking_type_code, 'default_picking_id': id, 'form_view_ref':'stock.view_move_form', 'address_in_id': partner_id, 'default_picking_type_id': picking_type_id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id}">
<tree decoration-danger="not parent.immediate_transfer and state != 'done' and quantity_done > reserved_availability and show_reserved_availability" decoration-muted="scrapped == True or state == 'cancel' or (state == 'done' and is_locked == True)" string="Stock Moves" editable="bottom">
<field name="company_id" invisible="1"/>
+2 -2
View File
@@ -28,7 +28,7 @@
</group>
</group>
<notebook colspan="4" groups="stock.group_adv_location">
<page string="Warehouse Configuration" colspan="4">
<page string="Warehouse Configuration" name="warehouse_config" colspan="4">
<group colspan="4">
<group string="Shipments">
<field name="reception_steps" widget='radio'/>
@@ -41,7 +41,7 @@
</group>
</group>
</page>
<page string="Technical Information" groups='base.group_no_one'>
<page string="Technical Information" name="technical_info" groups='base.group_no_one'>
<group>
<group string="Locations">
<field name="view_location_id" string="Warehouse view location" readonly="1" required="0"/>
@@ -13,7 +13,7 @@
</group>
</group>
<notebook>
<page string="Valuation">
<page string="Valuation" name="valuation">
<group>
<field name="quantity" />
<field name="uom_id" groups="uom.group_uom" />
@@ -23,7 +23,7 @@
<field name="remaining_qty" />
</group>
</page>
<page string="Other Info">
<page string="Other Info" name="other_info">
<group>
<field name="description" />
<field name="account_move_id" attrs="{'invisible': [('account_move_id', '=', False)]}" />
@@ -39,7 +39,7 @@
</group>
</group>
<notebook>
<page string="Additional Costs">
<page string="Additional Costs" name="additional_costs">
<field name="cost_lines">
<form string="Cost Lines">
<group>
@@ -71,7 +71,7 @@
<button colspan="2" name="compute_landed_cost" string="Compute" type="object" class="oe_right btn-secondary" states='draft'/>
</group>
</page>
<page string="Valuation Adjustments">
<page string="Valuation Adjustments" name="valuation_adjustments">
<field name="valuation_adjustment_lines">
<form string="Valuation Adjustments">
<group>
@@ -95,7 +95,7 @@
</group>
</group>
<notebook attrs="{'invisible': [('is_page', '=', True)]}">
<page string="Answers">
<page string="Answers" name="answers">
<field name="validation_email" attrs="{'invisible': [('question_type', '!=', 'char_box')]}"/>
<label for="validation_email" attrs="{'invisible': [('question_type', '!=', 'char_box')]}"/><br/>
<field name="save_as_email" attrs="{'invisible': ['|', ('question_type', '!=', 'char_box'), ('validation_email', '=', False)]}"/>
@@ -122,7 +122,7 @@
</tree>
</field>
</page>
<page string="Options">
<page string="Options" name="options">
<group string="Constraints">
<group colspan="2" col="4">
<field name="constr_mandatory" string="Mandatory Answer"/>
@@ -255,4 +255,4 @@
parent="survey_menu_questions"
sequence="3"/>
</data>
</odoo>
</odoo>
+3 -3
View File
@@ -52,7 +52,7 @@
</group>
</group>
<notebook>
<page string="Questions">
<page string="Questions" name="questions">
<field name="question_and_page_ids" nolabel="1" widget="question_page_one2many" mode="tree,kanban" context="{'default_survey_id': active_id, 'default_questions_selection': questions_selection}">
<tree decoration-bf="is_page" editable="bottom">
<field name="sequence" widget="handle"/>
@@ -68,10 +68,10 @@
</tree>
</field>
</page>
<page string="Description">
<page string="Description" name="description">
<field name="description" nolabel="1"></field>
</page>
<page string="Options">
<page string="Options" name="options">
<group name="options">
<group string="Questions" name="questions">
<field name="questions_layout" widget="radio" />
@@ -6,7 +6,7 @@
<field name="inherit_id" ref="crm.crm_lead_view_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[last()]" position="after">
<page string="Assigned Partner" groups="sales_team.group_sale_salesman">
<page string="Assigned Partner" name="assigned_partner" groups="sales_team.group_sale_salesman">
<group col="3">
<label for="partner_latitude" string="Geolocation"/>
<div class="o_row">
@@ -24,7 +24,7 @@
</tree>
</field>
<notebook colspan="4" groups="base.group_no_one">
<page string="Email Template">
<page string="Email Template" name="email_template">
<field name="body" readonly="1" options="{'style-inline': true}"/>
</page>
</notebook>
@@ -61,7 +61,7 @@
<field name="arch" type="xml">
<data>
<xpath expr="//notebook" position="inside">
<page string="Questions">
<page string="Questions" name="questions">
<field name="question_ids" nolabel="1">
<tree>
<field name="sequence" widget="handle" />
@@ -144,7 +144,7 @@
</group>
</group>
<notebook>
<page string="Speakers">
<page string="Speakers" name="speakers">
<group>
<field name="partner_id" domain="['|', ('company_id', '=', company_id), ('company_id', '=', False)]"/>
<field name="partner_name"/>
@@ -153,7 +153,7 @@
<field name="partner_biography"/>
</group>
</page>
<page string="Description">
<page string="Description" name="description">
<field name="description"/>
</page>
</notebook>
+1 -1
View File
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="base.view_model_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page string="Website Forms">
<page string="Website Forms" name="website_forms">
<group>
<field name="website_form_access"/>
<field name="website_form_label"/>
@@ -7,7 +7,7 @@
<field name="arch" type="xml">
<xpath expr="//sheet" position="inside">
<notebook>
<page string="Website popups">
<page string="Website popups" name="website_popups">
<field name="website_popup_ids">
<tree>
<field name="website_id"/>
@@ -10,7 +10,7 @@
<field name="website_id" groups="website.group_multi_website" options="{'no_open': True, 'no_create_edit': True}"/>
</field>
<xpath expr="//page[@name='destination']" position='after'>
<page string="Description">
<page string="Description" name="description">
<field name="website_description" placeholder="Description displayed on the eCommerce and on online quotations."/>
</page>
</xpath>
+3 -3
View File
@@ -201,7 +201,7 @@
</field>
</group>
</page>
<page string="Security">
<page string="Security" name="security">
<field name="groups_id"/>
</page>
</notebook>
@@ -306,7 +306,7 @@
<field name="groups_id"/>
</page>
<page string="Actions" autofocus="autofocus"
<page string="Actions" name="actions" autofocus="autofocus"
attrs="{'invisible': [('state', '!=', 'multi')]}">
<p class="oe_grey">
If several child actions return an action, only the last one will be executed.
@@ -315,7 +315,7 @@
<field name="child_ids" domain="[('model_id', '=', model_id)]"/>
</page>
<page string="Help" autofocus="autofocus"
<page string="Help" name="help_info" autofocus="autofocus"
attrs="{'invisible': [('state', '!=', 'code')]}">
<group>
<div style="margin-top: 4px;">
+5 -5
View File
@@ -39,7 +39,7 @@
</group>
</group>
<notebook>
<page string="Fields">
<page string="Fields" name="fields">
<field name="field_id">
<tree string="Fields Description">
<field name="name"/>
@@ -164,7 +164,7 @@
string="Create a Menu" type="action"
target="new" />
</page>
<page string="Access Rights">
<page string="Access Rights" name="access_rights">
<field name="access_ids">
<tree string="Access Rights" editable="top"
decoration-warning="not group_id and
@@ -179,7 +179,7 @@
</tree>
</field>
</page>
<page string="Record Rules">
<page string="Record Rules" name="record_rules">
<field name="rule_ids">
<tree string="Record Rules" editable="top" decoration-info="not groups">
<field name="name"/>
@@ -192,10 +192,10 @@
</tree>
</field>
</page>
<page string="Notes" groups="base.group_no_one">
<page string="Notes" name="notes" groups="base.group_no_one">
<field name="info"/>
</page>
<page string="Views" groups="base.group_no_one">
<page string="Views" name="views" groups="base.group_no_one">
<field name="view_ids"/>
</page>
</notebook>
+3 -3
View File
@@ -79,7 +79,7 @@
</div>
<div class="oe_clear"/>
<notebook groups="base.group_no_one">
<page string="Information">
<page string="Information" name="information">
<group>
<group>
<field name="has_iap" invisible="1"/>
@@ -95,7 +95,7 @@
</group>
</group>
</page>
<page string="Technical Data">
<page string="Technical Data" name="technical_data">
<group col="4">
<field name="demo"/>
<field name="application"/>
@@ -121,7 +121,7 @@
</tree>
</field>
</page>
<page string="Installed Features" attrs="{'invisible':[('state','!=','installed')]}">
<page string="Installed Features" name="installed_features" attrs="{'invisible':[('state','!=','installed')]}">
<group string="Created Menus"/>
<p class="oe_grey" attrs="{'invisible': [('menus_by_module','not in',[None,False])]}"> -This module does not create menu.</p>
<field name="menus_by_module"/>
+1 -1
View File
@@ -18,7 +18,7 @@
</group>
</group>
<notebook>
<page string="Sequence">
<page string="Sequence" name="sequence">
<group>
<group>
<field name="prefix"/>
+2 -2
View File
@@ -30,10 +30,10 @@
</group>
</group>
<notebook>
<page string="Access Rights">
<page string="Access Rights" name="access_rights">
<field name="groups_id"/>
</page>
<page string="Submenus" groups="base.group_no_one">
<page string="Submenus" name="submenus" groups="base.group_no_one">
<!-- Note: make sure you have 'ir.ui.menu.full_list'
in the context to see all submenus! -->
<field name="child_id"
+2 -2
View File
@@ -23,12 +23,12 @@
</group>
</group>
<notebook>
<page string="Architecture">
<page string="Architecture" name="architecture">
<button type="object" name="open_translations"
string="Edit Translations" class="oe_link oe_right"/>
<field name="arch_base" string="View Architecture" widget="ace" options="{'mode': 'xml'}"/>
</page>
<page string="Access Rights">
<page string="Access Rights" name="access_rights">
<field name="groups_id"/>
</page>
<page name="inherit_children" string="Inherited Views">
+1 -1
View File
@@ -15,7 +15,7 @@
</h1>
</div>
<notebook colspan="4">
<page string="General Information">
<page string="General Information" name="general_info">
<group>
<group>
<field name="partner_id" string="Contact" readonly="1" required="0" groups="base.group_no_one"/>
+1 -1
View File
@@ -287,7 +287,7 @@
</group>
<notebook colspan="4">
<page string="Contacts &amp; Addresses" autofocus="autofocus">
<page string="Contacts &amp; Addresses" name="contact_addresses" autofocus="autofocus">
<field name="child_ids" mode="kanban" context="{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_lang': lang, 'default_user_id': user_id, 'default_type': 'other'}">
<kanban>
<field name="id"/>
+8 -8
View File
@@ -59,20 +59,20 @@
<field name="share"/>
</group>
<notebook>
<page string="Users">
<page string="Users" name="users">
<field name="users" context="{'search_default_no_share':1}"/>
</page>
<page string="Inherited">
<page string="Inherited" name="inherit_groups">
<label for="implied_ids" string="Users added to this group are automatically added in the following groups."/>
<field name="implied_ids"/>
</page>
<page string="Menus">
<page string="Menus" name="menus">
<field name="menu_access"/>
</page>
<page string="Views">
<page string="Views" name="views">
<field name="view_access"/>
</page>
<page string="Access Rights">
<page string="Access Rights" name="access_rights">
<field name="model_access">
<tree string="Access Rights" editable="top">
<field name="name"/>
@@ -84,7 +84,7 @@
</tree>
</field>
</page>
<page string="Record Rules">
<page string="Record Rules" name="record_rules">
<field name="rule_groups">
<tree string="Record Rules" editable="top">
<field name="name"/>
@@ -96,7 +96,7 @@
<field name="perm_unlink"/>
</tree>
</field>
</page><page string="Notes">
</page><page string="Notes" name="notes">
<field name="comment"/>
</page>
</notebook>
@@ -210,7 +210,7 @@
</group>
<field name="groups_id"/>
</page>
<page string="Preferences">
<page string="Preferences" name="references">
<group>
<group string="Localization" name="preferences">
<field name="active" invisible="1"/>