[IMP] *: introduce data-hotkey on form and modal views

Define `data-hotkey` on most used action buttons.

For the modals, the following keys are dedicated for "special"
actions:
 - Alt+G: add
 - Alt+V: save
 - Alt+Z: cancel

closes odoo/odoo#73275

Taskid: 2588233
Related: odoo/enterprise#19464
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Kevin Baptiste
2021-07-15 08:39:49 +00:00
parent bb9ff3b62d
commit 86aa7b78aa
170 changed files with 478 additions and 468 deletions
@@ -42,8 +42,8 @@
<field name="arch" type="xml">
<xpath expr="//sheet" position="after">
<footer>
<button string="Confirm" class="btn-primary" special="save"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Confirm" class="btn-primary" special="save" data-hotkey="v"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</xpath>
</field>
@@ -58,8 +58,8 @@
<p>The closing balance is different than the computed one!</p>
<p>Confirming this will create automatically a journal entry with the difference in the profit/loss account set on the cash journal.</p>
<footer>
<button string="Confirm" name="validate" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Confirm" name="validate" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</div>
</form>
+13 -11
View File
@@ -592,48 +592,50 @@
<header>
<!-- Post -->
<button name="action_post" string="Post" class="oe_highlight"
type="object" groups="account.group_account_invoice"
type="object" groups="account.group_account_invoice" data-hotkey="v"
attrs="{'invisible': ['|', '|', ('state', '!=', 'draft'), ('auto_post', '=', True), ('move_type', '!=', 'entry')]}"/>
<button name="action_post" string="Confirm" class="oe_highlight"
type="object" groups="account.group_account_invoice"
type="object" groups="account.group_account_invoice" data-hotkey="v"
attrs="{'invisible': ['|', '|', '|', ('state', '!=', 'draft'), ('auto_post', '=', True), ('move_type', '=', 'entry'), ('display_inactive_currency_warning','=',True)]}"/>
<!-- Send (only invoices) -->
<button name="action_invoice_sent"
type="object"
string="Send &amp; Print"
attrs="{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', True), ('move_type', 'not in', ('out_invoice', 'out_refund'))]}"
class="oe_highlight"/>
class="oe_highlight"
data-hotkey="y"/>
<button name="action_invoice_sent"
type="object"
string="Send &amp; Print"
attrs="{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', False), ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}"/>
attrs="{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', False), ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}"
data-hotkey="y"/>
<!-- Register Payment (only invoices / receipts) -->
<button name="action_register_payment" id="account_invoice_payment_btn"
type="object" class="oe_highlight"
attrs="{'invisible': ['|', '|', ('state', '!=', 'posted'), ('payment_state', 'not in', ('not_paid', 'partial')), ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}"
context="{'dont_redirect_to_payments': True}"
string="Register Payment"
string="Register Payment" data-hotkey="g"
groups="account.group_account_invoice"/>
<!-- Preview (only customer invoices) -->
<button name="preview_invoice" type="object" string="Preview"
<button name="preview_invoice" type="object" string="Preview" data-hotkey="o"
attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))]}"/>
<!-- Reverse -->
<button name="%(action_view_account_move_reversal)d" string="Reverse Entry"
type="action" groups="account.group_account_invoice"
type="action" groups="account.group_account_invoice" data-hotkey="z"
attrs="{'invisible': ['|', ('move_type', '!=', 'entry'), '|', ('state', '!=', 'posted'), ('payment_state', '=', 'reversed')]}"/>
<button name="action_reverse" string='Add Credit Note'
type='object' groups="account.group_account_invoice"
attrs="{'invisible': ['|', ('move_type', 'not in', ('out_invoice', 'in_invoice')), ('state', '!=', 'posted')]}"/>
<!-- Cancel -->
<button name="button_cancel" string="Cancel Entry" type="object" groups="account.group_account_invoice"
<button name="button_cancel" string="Cancel Entry" type="object" groups="account.group_account_invoice" data-hotkey="w"
attrs="{'invisible' : ['|', '|', ('id', '=', False), ('state', '!=', 'draft'),('move_type', '!=', 'entry')]}"/>
<button name="button_cancel" string="Cancel" type="object" groups="account.group_account_invoice"
<button name="button_cancel" string="Cancel" type="object" groups="account.group_account_invoice" data-hotkey="w"
attrs="{'invisible' : ['|', '|', ('id', '=', False), ('state', '!=', 'draft'),('move_type', '==', 'entry')]}"/>
<button name="button_draft" string="Reset to Draft" type="object" groups="account.group_account_invoice"
attrs="{'invisible' : [('show_reset_to_draft_button', '=', False)]}"/>
attrs="{'invisible' : [('show_reset_to_draft_button', '=', False)]}" data-hotkey="q" />
<!-- Set as Checked -->
<button name="button_set_checked" string="Set as Checked" type="object" groups="account.group_account_invoice"
attrs="{'invisible' : [('to_check', '=', False)]}"/>
attrs="{'invisible' : [('to_check', '=', False)]}" data-hotkey="k" />
<field name="state" widget="statusbar" statusbar_visible="draft,posted"/>
</header>
<!-- Invoice outstanding credits -->
@@ -132,8 +132,8 @@
<label for="account_sale_tax_id" string="Sales Tax"/>
<field name="account_sale_tax_id" />
<footer>
<button string="Apply" class="btn btn-primary" type="object" name="action_save_onboarding_sale_tax" />
<button string="Cancel" class="btn-secondary" special="cancel" />
<button string="Apply" class="btn btn-primary" type="object" name="action_save_onboarding_sale_tax" data-hotkey="q" />
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -148,15 +148,15 @@
<form string="Register Payment">
<header>
<button name="action_post" string="Confirm" type="object" class="oe_highlight"
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
attrs="{'invisible': [('state', '!=', 'draft')]}" data-hotkey="v"/>
<button name="action_draft" string="Reset To Draft" type="object" class="btn btn-secondary"
attrs="{'invisible': [('state', 'not in', ('posted', 'cancel'))]}"
groups="account.group_account_invoice"/>
groups="account.group_account_invoice" data-hotkey="w"/>
<button name="action_cancel" string="Cancel" type="object"
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
<button name="mark_as_sent" string="Mark as Sent" type="object"
attrs="{'invisible': [('state', '!=', 'draft')]}" data-hotkey="z"/>
<button name="mark_as_sent" string="Mark as Sent" type="object" data-hotkey="q"
attrs="{'invisible': ['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', True), ('payment_method_code', '!=', 'manual')]}"/>
<button name="unmark_as_sent" string="Unmark as Sent" type="object"
<button name="unmark_as_sent" string="Unmark as Sent" type="object" data-hotkey="k"
attrs="{'invisible': ['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', False), ('payment_method_code', '!=', 'manual')]}"/>
<field name="state" widget="statusbar" statusbar_visible="draft,posted"/>
</header>
@@ -39,8 +39,8 @@
<label for="preview_move_data" string="The following Journal Entries will be generated"/>
<field name="preview_move_data" widget="grouped_view_widget"/>
<footer>
<button string="Create Journal Entries" name="do_action" type="object" class="oe_highlight"/>
<button string="Cancel" class="btn btn-secondary" special="cancel"/>
<button string="Create Journal Entries" name="do_action" type="object" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -63,18 +63,18 @@
<footer>
<button string="Send &amp; Print"
attrs="{'invisible': ['|', ('is_email', '=', False), ('is_print', '=', False)]}"
attrs="{'invisible': ['|', ('is_email', '=', False), ('is_print', '=', False)]}" data-hotkey="q"
name="send_and_print_action" type="object" class="send_and_print btn-primary o_mail_send"/>
<button string="Send"
<button string="Send" data-hotkey="q"
attrs="{'invisible': ['|', ('is_print', '=', True), ('is_email', '=', False)]}"
name="send_and_print_action" type="object" class="send btn-primary o_mail_send"/>
<button string="Print"
<button string="Print" data-hotkey="q"
attrs="{'invisible': ['|', ('is_print', '=', False), ('is_email', '=', True)]}"
name="send_and_print_action" type="object" class="print btn-primary o_mail_send"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
<button icon="fa-lg fa-save" type="object" name="save_as_template" string="Save as new template"
attrs="{'invisible': ['|', ('composition_mode', '=', 'mass_mail'), ('is_email', '=', False)]}"
class="pull-right btn-secondary" help="Save as a new template" />
class="pull-right btn-secondary" help="Save as a new template" data-hotkey="w" />
</footer>
</form>
</field>
@@ -40,8 +40,8 @@
</group>
</group>
<footer>
<button string='Reverse' name="reverse_moves" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string='Reverse' name="reverse_moves" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -72,8 +72,8 @@
</group>
</group>
<footer>
<button string="Create Payment" name="action_create_payments" type="object" class="oe_highlight"/>
<button string="Cancel" class="btn btn-secondary" special="cancel"/>
<button string="Create Payment" name="action_create_payments" type="object" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -16,8 +16,8 @@
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
</group>
<footer>
<button name="check_report" string="Print" type="object" default_focus="1" class="oe_highlight"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" />
<button name="check_report" string="Print" type="object" default_focus="1" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -20,8 +20,8 @@
<label for="preview_moves" string="Preview Modifications"/>
<field name="preview_moves" widget="account_resequence_widget"/>
<footer>
<button string="Confirm" name="resequence" type="object" default_focus="1" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Confirm" name="resequence" type="object" default_focus="1" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -22,8 +22,8 @@
</group>
</sheet>
<footer>
<button string="Continue" type="object" name="apply" class="btn-primary"/>
<button string="Discard" class="btn-secondary" special="cancel" />
<button string="Continue" type="object" name="apply" class="btn-primary" data-hotkey="q"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -39,8 +39,8 @@
<p>Once done, press continue.</p>
</sheet>
<footer>
<button string="Continue" type="object" name="apply" class="btn-primary"/>
<button string="Discard" class="btn-secondary" special="cancel" />
<button string="Continue" type="object" name="apply" class="btn-primary" data-hotkey="q"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -10,8 +10,8 @@
<separator string="Unreconcile Transactions"/>
<form class="o_form_label">If you unreconcile transactions, you must also verify all the actions that are linked to those transactions because they will not be disabled</form>
<footer>
<button string="Unreconcile" name="trans_unrec" type="object" default_focus="1" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Unreconcile" name="trans_unrec" type="object" default_focus="1" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -13,8 +13,8 @@
</group>
<span class="o_form_label">All selected journal entries will be validated and posted. You won't be able to modify them afterwards.</span>
<footer>
<button string="Post Journal Entries" name="validate_move" type="object" default_focus="1" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Post Journal Entries" name="validate_move" type="object" default_focus="1" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
+2 -2
View File
@@ -13,8 +13,8 @@
</group>
<footer>
<button name="run" string="Take Money In/Out" type="object" class="btn-primary"/>
<button class="btn-secondary" special="cancel" string="Cancel" />
<button name="run" string="Take Money In/Out" type="object" class="btn-primary" data-hotkey="q"/>
<button class="btn-secondary" special="cancel" data-hotkey="z" string="Cancel" />
</footer>
</form>
</field>
+4 -4
View File
@@ -24,8 +24,8 @@
</sheet>
<footer>
<button name="action_save_onboarding_fiscal_year" string="Apply"
class="oe_highlight" type="object" />
<button special="cancel" string="Cancel" />
class="oe_highlight" type="object" data-hotkey="q" />
<button special="cancel" data-hotkey="z" string="Cancel" />
</footer>
</form>
</field>
@@ -58,8 +58,8 @@
</group>
</sheet>
<footer>
<button string="Create" class="oe_highlight" type="object" name="validate"/>
<button string="Cancel" special="cancel"/>
<button string="Create" class="oe_highlight" type="object" name="validate" data-hotkey="q"/>
<button string="Cancel" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -30,8 +30,8 @@
</group>
</group>
<footer>
<button name="create_move" string="Create and post move" type="object" default_focus="1" class="oe_highlight"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" />
<button name="create_move" string="Create and post move" type="object" default_focus="1" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -6,9 +6,9 @@
<field name="inherit_id" ref="account.view_account_payment_form" />
<field name="arch" type="xml">
<xpath expr="//button[@name='action_post']" position="before">
<button name="print_checks" class="oe_highlight" attrs="{'invisible': ['|', '|', ('payment_method_code', '!=', 'check_printing'), ('state', '!=', 'posted'), ('is_move_sent', '=', True)]}" string="Print Check" type="object"/>
<button name="action_unmark_sent" attrs="{'invisible': ['|', ('payment_method_code', '!=', 'check_printing'), ('is_move_sent', '=', False)]}" string="Unmark Sent" type="object"/>
<button name="action_void_check" attrs="{'invisible': ['|', '|', ('payment_method_code', '!=', 'check_printing'), ('state', '!=', 'posted'), ('is_move_sent', '=', False)]}" string="Void Check" type="object"/>
<button name="print_checks" class="oe_highlight" attrs="{'invisible': ['|', '|', ('payment_method_code', '!=', 'check_printing'), ('state', '!=', 'posted'), ('is_move_sent', '=', True)]}" string="Print Check" type="object" data-hotkey="g" />
<button name="action_unmark_sent" attrs="{'invisible': ['|', ('payment_method_code', '!=', 'check_printing'), ('is_move_sent', '=', False)]}" string="Unmark Sent" type="object" data-hotkey="l" />
<button name="action_void_check" attrs="{'invisible': ['|', '|', ('payment_method_code', '!=', 'check_printing'), ('state', '!=', 'posted'), ('is_move_sent', '=', False)]}" string="Void Check" type="object" data-hotkey="o" />
</xpath>
<xpath expr="//div[@name='amount_div']" position="after">
<field name="check_amount_in_words" attrs="{'invisible': [('payment_method_code', '!=', 'check_printing')]}" groups="base.group_no_one"/>
@@ -12,8 +12,8 @@
<field name="next_check_number"/>
</group>
<footer>
<button name="print_checks" string="Print" type="object" class="oe_highlight"/>
<button string="Cancel" class="btn btn-secondary" special="cancel"/>
<button name="print_checks" string="Print" type="object" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -20,8 +20,8 @@
</group>
</group>
<footer>
<button string='Create Debit Note' name="create_debit" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string='Create Debit Note' name="create_debit" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
+2 -2
View File
@@ -98,8 +98,8 @@
</sheet>
<footer>
<button type="object" name="enable" class="btn btn-primary"
string="Enable two-factor authentication"/>
<button string="Cancel" special="cancel"/>
string="Enable two-factor authentication" data-hotkey="q"/>
<button string="Cancel" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -21,11 +21,11 @@
<footer>
<div states="init">
<button name="import_module" string="Import App" type="object" class="btn-primary"/>
<button special="cancel" string="Cancel" class="btn-secondary"/>
<button special="cancel" data-hotkey="z" string="Cancel" class="btn-secondary"/>
</div>
<div states="done">
<button name="action_module_open" string="Open Modules" type="object" class="btn-primary"/>
<button special="cancel" string="Close" class="btn-secondary"/>
<button name="action_module_open" string="Open Modules" type="object" class="btn-primary" data-hotkey="q"/>
<button special="cancel" data-hotkey="z" string="Close" class="btn-secondary"/>
</div>
</footer>
</form>
@@ -22,8 +22,8 @@
Some selected customers do not have an email address and will not receive the coupon.
</div>
<footer>
<button name="generate_coupon" type="object" string="Generate" class="oe_highlight"/>
<button special="cancel" string="Cancel"/>
<button name="generate_coupon" type="object" string="Generate" class="oe_highlight" data-hotkey="q"/>
<button special="cancel" data-hotkey="z" string="Cancel"/>
</footer>
</form>
</field>
+5 -5
View File
@@ -7,15 +7,15 @@
<form class="o_lead_opportunity_form" js_class="crm_form">
<header>
<button name="action_set_won_rainbowman" string="Won"
type="object" class="oe_highlight"
type="object" class="oe_highlight" data-hotkey="w"
attrs="{'invisible': ['|','|', ('active','=',False), ('probability', '=', 100), ('type', '=', 'lead')]}"/>
<button name="%(crm.crm_lead_lost_action)d" string="Lost"
<button name="%(crm.crm_lead_lost_action)d" string="Lost" data-hotkey="l"
type="action" context="{'default_lead_id': active_id}" attrs="{'invisible': ['|', ('type', '=', 'lead'),('active', '=', False),('probability', '&lt;', 100)]}"/>
<button name="%(crm.action_crm_lead2opportunity_partner)d" string="Convert to Opportunity" type="action" help="Convert to Opportunity"
class="oe_highlight" attrs="{'invisible': ['|', ('type', '=', 'opportunity'), ('active', '=', False)]}"/>
<button name="toggle_active" string="Restore" type="object"
class="oe_highlight" attrs="{'invisible': ['|', ('type', '=', 'opportunity'), ('active', '=', False)]}" data-hotkey="v"/>
<button name="toggle_active" string="Restore" type="object" data-hotkey="z"
attrs="{'invisible': ['|', ('probability', '&gt;', 0), ('active', '=', True)]}"/>
<button name="action_set_lost" string="Lost" type="object"
<button name="action_set_lost" string="Lost" type="object" data-hotkey="l"
attrs="{'invisible': ['|', ('type', '=', 'opportunity'), '&amp;', ('probability', '=', 0), ('active', '=', False)]}"/>
<field name="stage_id" widget="statusbar"
options="{'clickable': '1', 'fold_field': 'fold'}"
+2 -2
View File
@@ -9,8 +9,8 @@
<field name="lost_reason_id" options="{'no_create_edit': True}" />
</group>
<footer>
<button name="action_lost_reason_apply" string="Submit" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button name="action_lost_reason_apply" string="Submit" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -16,8 +16,8 @@
</p>
<footer>
<button name="action_update_crm_lead_probabilities" type="object"
string="Confirm" class="btn-primary"/>
<button special="cancel" string="Cancel"/>
string="Confirm" class="btn-primary" data-hotkey="q"/>
<button special="cancel" data-hotkey="z" string="Cancel"/>
</footer>
</form>
</field>
@@ -43,8 +43,8 @@
</group>
</group>
<footer>
<button string="Convert to Opportunities" name="action_mass_convert" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Convert to Opportunities" name="action_mass_convert" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -35,8 +35,8 @@
</group>
</group>
<footer>
<button name="action_apply" string="Create Opportunity" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button name="action_apply" string="Create Opportunity" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -26,8 +26,8 @@
</field>
</group>
<footer>
<button name="action_merge" type="object" string="Merge" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button name="action_merge" type="object" string="Merge" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -99,8 +99,8 @@
</group>
</group>
<footer>
<button string="Generate Leads" name="action_submit" type="object" default_focus="1" class="btn-primary" invisible="not context.get('is_modal')"/>
<button string="Cancel" class="btn-secondary" special="cancel" invisible="not context.get('is_modal')"/>
<button string="Generate Leads" name="action_submit" type="object" default_focus="1" class="btn-primary" invisible="not context.get('is_modal')" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" invisible="not context.get('is_modal')"/>
</footer>
</sheet>
</form>
@@ -7,10 +7,10 @@
<field name="arch" type="xml">
<xpath expr="//button[@name='%(crm.action_crm_lead2opportunity_partner)d']" position="after">
<field name="show_enrich_button" invisible="1"/>
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary"
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary" data-hotkey="g"
title="Enrich this lead with company data based on the email address"
attrs="{'invisible':['|',('show_enrich_button', '!=', True),('type','=','opportunity')]}"/>
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary"
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary" data-hotkey="g"
title="Enrich this opportunity with company data based on the email address"
attrs="{'invisible':['|',('show_enrich_button', '!=', True),('type','=','lead')]}"/>
</xpath>
+3 -3
View File
@@ -236,10 +236,10 @@
attrs="{'invisible': ['|','|',('carrier_tracking_ref','=',False),('carrier_id', '=', False),('delivery_type','=','grid')]}" />
</div>
<xpath expr="/form/header/button[last()]" position="after">
<button name="send_to_shipper" string="Send to Shipper" type="object" attrs="{'invisible':['|','|','|','|',('carrier_tracking_ref','!=',False),('delivery_type','in', ['fixed', 'base_on_rule']),('delivery_type','=',False),('state','not in',('done')),('picking_type_code', '=', 'incoming')]}"/>
<button name="send_to_shipper" string="Send to Shipper" type="object" attrs="{'invisible':['|','|','|','|',('carrier_tracking_ref','!=',False),('delivery_type','in', ['fixed', 'base_on_rule']),('delivery_type','=',False),('state','not in',('done')),('picking_type_code', '=', 'incoming')]}" data-hotkey="shift+v"/>
</xpath>
<xpath expr="/form/header/button[last()]" position="after">
<button name="print_return_label" string="Print Return Label" type="object" attrs="{'invisible':['|', '|', ('is_return_picking', '=', False),('state', '=', 'done'),('picking_type_code', '!=', 'incoming')]}"/>
<button name="print_return_label" string="Print Return Label" type="object" attrs="{'invisible':['|', '|', ('is_return_picking', '=', False),('state', '=', 'done'),('picking_type_code', '!=', 'incoming')]}" data-hotkey="shift+o"/>
</xpath>
</data>
<xpath expr="//field[@name='partner_id']" position="attributes">
@@ -337,7 +337,7 @@
</div>
</group>
<footer>
<button string="OK" special="cancel" class="oe_highlight"/>
<button string="OK" special="cancel" data-hotkey="z" class="oe_highlight"/>
</footer>
</form>
</field>
@@ -29,9 +29,9 @@
<field name="delivery_message" nolabel="1"/>
</div>
<footer>
<button name="button_confirm" invisible="not context.get('carrier_recompute')" type="object" string="Update" class="btn-primary"/>
<button name="button_confirm" invisible="context.get('carrier_recompute')" type="object" string="Add" class="btn-primary"/>
<button string="Discard" special="cancel" class="btn-secondary"/>
<button name="button_confirm" invisible="not context.get('carrier_recompute')" type="object" string="Update" class="btn-primary" data-hotkey="q"/>
<button name="button_confirm" invisible="context.get('carrier_recompute')" type="object" string="Add" class="btn-primary" data-hotkey="q"/>
<button string="Discard" special="cancel" data-hotkey="z" class="btn-secondary"/>
</footer>
</form>
</field>
@@ -16,8 +16,8 @@
</div>
</group>
<footer>
<button name="action_put_in_pack" type="object" string="Save" class="btn-primary"/>
<button string="Discard" special="cancel" class="btn-secondary"/>
<button name="action_put_in_pack" type="object" string="Save" class="btn-primary" data-hotkey="q"/>
<button string="Discard" special="cancel" data-hotkey="z" class="btn-secondary"/>
</footer>
</form>
</field>
@@ -31,8 +31,8 @@
<field name="product_id" invisible="1"/>
</group>
<footer>
<button string="Ok" class="btn-primary o_event_sale_js_event_configurator_ok" special="save"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Ok" class="btn-primary o_event_sale_js_event_configurator_ok" special="save" data-hotkey="v"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -21,8 +21,8 @@
</tree>
</field>
<footer>
<button string="Confirm" name="action_make_registration" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Confirm" name="action_make_registration" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
+2 -2
View File
@@ -11,8 +11,8 @@
<field name="comment" nolabel="1" placeholder="Describe what they did and why it matters (will be public)" colspan="4"/>
</group>
<footer>
<button string="Grant Badge" type="object" name="action_grant_badge" class="btn-primary" />
<button string="Cancel" special="cancel" class="btn-secondary"/>
<button string="Grant Badge" type="object" name="action_grant_badge" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" special="cancel" data-hotkey="z" class="btn-secondary"/>
</footer>
</form>
</field>
+2 -2
View File
@@ -10,8 +10,8 @@
<field name="current" />
</group>
<footer>
<button string="Update" type="object" name="action_update_current" class="btn-primary" />
<button string="Cancel" special="cancel" class="btn-secondary"/>
<button string="Update" type="object" name="action_update_current" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" special="cancel" data-hotkey="z" class="btn-secondary"/>
</footer>
</form>
</field>
@@ -12,8 +12,8 @@
</group>
<footer>
<button name="reset_account" string="Confirm" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button name="reset_account" string="Confirm" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -68,8 +68,9 @@
<button string="Confirm"
class="btn btn-primary"
name="confirm_setup_token"
data-hotkey="q"
type="object"/>
<button special="cancel" string="Cancel" />
<button special="cancel" data-hotkey="z" string="Cancel" />
</footer>
</form>
</field>
@@ -18,8 +18,8 @@
</group>
</sheet>
<footer>
<button name="action_register_departure" string="Save" type="object" class="oe_highlight"/>
<button string="Only Employee" class="btn-secondary" special="cancel"/>
<button name="action_register_departure" string="Save" type="object" class="oe_highlight" data-hotkey="q"/>
<button string="Only Employee" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
+2 -2
View File
@@ -13,8 +13,8 @@
</group>
</sheet>
<footer>
<button name="action_launch" string="Launch Plan" type="object" class="oe_highlight" groups="hr.group_hr_manager"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button name="action_launch" string="Launch Plan" type="object" class="oe_highlight" groups="hr.group_hr_manager" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
+9 -6
View File
@@ -110,12 +110,12 @@
<field name="arch" type="xml">
<form string="Expenses" class="o_expense_form" js_class="hr_expense_form_view">
<header>
<button name="action_submit_expenses" string="Create Report" type="object" class="oe_highlight o_expense_submit" attrs="{'invisible': ['|', '|', ('id', '=', False), ('attachment_number', '&lt;=', 0), ('sheet_id', '!=', False)]}"/>
<button name="action_submit_expenses" string="Create Report" type="object" class="oe_highlight o_expense_submit" attrs="{'invisible': ['|', '|', ('id', '=', False), ('attachment_number', '&lt;=', 0), ('sheet_id', '!=', False)]}" data-hotkey="v"/>
<widget name="attach_document" string="Attach Receipt" action="message_post" attrs="{'invisible': ['|', ('attachment_number', '&lt;', 1), ('id','=',False)]}"/>
<widget name="attach_document" string="Attach Receipt" action="message_post" highlight="1" attrs="{'invisible': ['|',('attachment_number', '&gt;=', 1), ('id','=',False)]}"/>
<button name="action_submit_expenses" string="Create Report" type="object" class="o_expense_submit" attrs="{'invisible': ['|', '|', ('id', '=', False), ('attachment_number', '&gt;=', 1), ('sheet_id', '!=', False)]}"/>
<button name="action_submit_expenses" string="Create Report" type="object" class="o_expense_submit" attrs="{'invisible': ['|', '|', ('id', '=', False), ('attachment_number', '&gt;=', 1), ('sheet_id', '!=', False)]}" data-hotkey="v"/>
<field name="state" widget="statusbar" statusbar_visible="draft,reported,approved,done,refused"/>
<button name="action_view_sheet" type="object" string="View Report" class="oe_highlight" attrs="{'invisible': [('sheet_id', '=', False)]}"/>
<button name="action_view_sheet" type="object" string="View Report" class="oe_highlight" attrs="{'invisible': [('sheet_id', '=', False)]}" data-hotkey="w"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
@@ -668,27 +668,30 @@
<field name="can_reset" invisible="1"/>
<field name="can_approve" invisible="1"/>
<header>
<button name="action_submit_sheet" states="draft" string="Submit to Manager" type="object" class="oe_highlight o_expense_sheet_submit"/>
<button name="action_submit_sheet" states="draft" string="Submit to Manager" type="object" class="oe_highlight o_expense_sheet_submit" data-hotkey="l"/>
<button name="approve_expense_sheets"
string="Approve"
type="object"
data-hotkey="v"
attrs="{'invisible': ['|', ('can_approve', '=', False), ('state', '!=', 'submit')]}"
class="oe_highlight o_expense_sheet_approve"/>
<button name="action_sheet_move_create"
string="Post Journal Entries"
type="object"
data-hotkey="y"
class="oe_highlight o_expense_sheet_post"
attrs="{'invisible': [('state', '!=', 'approve')]}"
groups="account.group_account_invoice"/>
<button name="action_register_payment"
type="object"
data-hotkey="w"
class="oe_highlight o_expense_sheet_pay"
attrs="{'invisible': [('state', '!=', 'post')]}"
context="{'dont_redirect_to_payments': True}"
string="Register Payment"
groups="account.group_account_invoice"/>
<button name="%(hr_expense.hr_expense_refuse_wizard_action)d" states="submit,approve" context="{'hr_expense_refuse_model':'hr.expense.sheet'}" string="Refuse" type="action" groups="hr_expense.group_hr_expense_team_approver" />
<button name="reset_expense_sheets" string="Reset to Draft" type="object" attrs="{'invisible': ['|', ('can_reset', '=', False), ('state', 'not in', ['submit', 'cancel'])]}"/>
<button name="%(hr_expense.hr_expense_refuse_wizard_action)d" states="submit,approve" context="{'hr_expense_refuse_model':'hr.expense.sheet'}" string="Refuse" type="action" groups="hr_expense.group_hr_expense_team_approver" data-hotkey="x" />
<button name="reset_expense_sheets" string="Reset to Draft" type="object" attrs="{'invisible': ['|', ('can_reset', '=', False), ('state', 'not in', ['submit', 'cancel'])]}" data-hotkey="q"/>
<field name="state" widget="statusbar" statusbar_visible="draft,submit,approve,post,done" force_save="1"/>
</header>
<sheet>
@@ -18,9 +18,9 @@
</tree>
</field>
<footer>
<button string="Refuse" class="btn-primary" name="action_refuse" type="object" attrs="{'invisible': [('sheet_ids', '=', [])]}" />
<button string="Approve" class="btn-secondary" name="action_approve" type="object" attrs="{'invisible': [('sheet_ids', '=', [])]}" />
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Refuse" class="btn-primary" name="action_refuse" type="object" attrs="{'invisible': [('sheet_ids', '=', [])]}" data-hotkey="q" />
<button string="Approve" class="btn-secondary" name="action_approve" type="object" attrs="{'invisible': [('sheet_ids', '=', [])]}" data-hotkey="w" />
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -10,8 +10,8 @@
<field name="hr_expense_sheet_id" invisible="1"/>
<field name="reason"/>
<footer>
<button string='Refuse' name="expense_refuse_reason" type="object" class="oe_highlight"/>
<button string="Cancel" class="oe_link" special="cancel"/>
<button string='Refuse' name="expense_refuse_reason" type="object" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="oe_link" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -30,8 +30,8 @@
<field name="comment" nolabel="1" placeholder="Describe what they did and why it matters (will be public)" />
</group>
<footer>
<button string="Reward Employee" type="object" name="action_grant_badge" class="btn-primary" />
<button string="Cancel" special="cancel" class="btn-secondary"/>
<button string="Reward Employee" type="object" name="action_grant_badge" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" special="cancel" data-hotkey="z" class="btn-secondary"/>
</footer>
</form>
</field>
@@ -456,8 +456,8 @@
</div>
<xpath expr="//sheet" position="after">
<footer>
<button string="Save" special="save" class="oe_highlight" />
<button string="Discard" special="cancel" />
<button string="Save" special="save" data-hotkey="v" class="oe_highlight" />
<button string="Discard" special="cancel" data-hotkey="z" />
</footer>
</xpath>
</field>
+2 -2
View File
@@ -386,8 +386,8 @@
<field name="arch" type="xml">
<xpath expr="//sheet" position="after">
<footer>
<button string="Save" special="save" class="oe_highlight" />
<button string="Discard" special="cancel" />
<button string="Save" special="save" data-hotkey="v" class="oe_highlight" />
<button string="Discard" special="cancel" data-hotkey="z" />
</footer>
</xpath>
</field>
@@ -14,8 +14,8 @@
<field name="emp" invisible="True"/>
</group>
<footer>
<button name="print_report" string="Print" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button name="print_report" string="Print" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -73,10 +73,10 @@
<field name="arch" type="xml">
<form string="Jobs - Recruitment Form" class="o_applicant_form">
<header>
<button string="Create Employee" name="create_employee_from_applicant" type="object"
<button string="Create Employee" name="create_employee_from_applicant" type="object" data-hotkey="v"
class="oe_highlight o_create_employee" attrs="{'invisible': ['|',('emp_id', '!=', False),('active', '=', False)]}"/>
<button string="Refuse" name="archive_applicant" type="object" attrs="{'invisible': [('active', '=', False)]}"/>
<button string="Restore" name="toggle_active" type="object" attrs="{'invisible': [('active', '=', True)]}"/>
<button string="Refuse" name="archive_applicant" type="object" attrs="{'invisible': [('active', '=', False)]}" data-hotkey="x"/>
<button string="Restore" name="toggle_active" type="object" attrs="{'invisible': [('active', '=', True)]}" data-hotkey="z"/>
<field name="stage_id" widget="statusbar" options="{'clickable': '1', 'fold_field': 'fold'}" attrs="{'invisible': [('active', '=', False),('emp_id', '=', False)]}"/>
</header>
<sheet>
@@ -454,8 +454,8 @@
</div>
</group>
<footer>
<button string="Create" name="close_dialog" type="object" class="btn-primary o_create_job"/>
<button string="Discard" class="btn-secondary" special="cancel"/>
<button string="Create" name="close_dialog" type="object" class="btn-primary o_create_job" data-hotkey="q"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</sheet>
</form>
@@ -15,8 +15,8 @@
<field name="applicant_ids" invisible="1"/>
</group>
<footer>
<button name="action_refuse_reason_apply" string="Submit" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button name="action_refuse_reason_apply" string="Submit" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -12,9 +12,9 @@
<field name="description" widget="text" placeholder="Describe your activity..."/>
</group>
<footer>
<button string="Save" type="object" name="save_timesheet" class="btn btn-primary"/>
<button string="Delete" type="object" name="action_delete_timesheet" class="btn btn-secondary"/>
<button string="Discard" special="cancel" type="object" class="btn btn-secondary"/>
<button string="Save" type="object" name="save_timesheet" class="btn btn-primary" data-hotkey="q"/>
<button string="Delete" type="object" name="action_delete_timesheet" class="btn btn-secondary" data-hotkey="w"/>
<button string="Discard" special="cancel" data-hotkey="z" type="object" class="btn btn-secondary"/>
</footer>
</form>
</field>
@@ -17,8 +17,8 @@
<field name="work_entry_type_id"/>
</group>
<footer>
<button string="Confirm" name="action_confirm" type="object" class="oe_highlight"/>
<button string="Cancel" class="btn btn-secondary" special="cancel"/>
<button string="Confirm" name="action_confirm" type="object" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -46,7 +46,7 @@
</div>
<footer>
<button name="regenerate_work_entries"
string="Regenerate Work Entries"
string="Regenerate Work Entries" data-hotkey="q"
type="object" class="oe_highlight"
attrs="{'invisible': ['|', ('search_criteria_completed', '=', False), ('valid', '=', False)]}"/>
<button name="regenerate_work_entries_disabled"
+1 -1
View File
@@ -35,7 +35,7 @@
<footer>
<button string="Create Fiscal Positions and Taxes"
name="generate_eu_service" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -116,7 +116,7 @@
<footer>
<button string="Generate" name="generate_fec" type="object"
class="oe_highlight"/>
<button string="Cancel" class="btn btn-secondary" special="cancel"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
+3 -3
View File
@@ -247,9 +247,9 @@
</div>
</div>
<footer>
<button string="Save" special="save" class="oe_highlight" invisible="not context.get('active_id', False)"/>
<button string="Add To Cart" name="add_to_cart" type="object" class="oe_highlight" invisible="context.get('active_id', False)"/>
<button string="Discard" special="cancel"/>
<button string="Save" special="save" data-hotkey="v" class="oe_highlight" invisible="not context.get('active_id', False)"/>
<button string="Add To Cart" name="add_to_cart" type="object" class="oe_highlight" invisible="context.get('active_id', False)" data-hotkey="w"/>
<button string="Discard" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
+6 -6
View File
@@ -130,19 +130,19 @@
<footer>
<field name="id" invisible="1"/>
<button string="Schedule" name="action_close_dialog" type="object" class="btn-primary"
attrs="{'invisible': [('id', '!=', False)]}"/>
attrs="{'invisible': [('id', '!=', False)]}" data-hotkey="q"/>
<button string="Save" name="action_close_dialog" type="object" class="btn-primary"
attrs="{'invisible': [('id', '=', False)]}"/>
attrs="{'invisible': [('id', '=', False)]}" data-hotkey="q"/>
<button attrs="{'invisible': [('chaining_type', '=', 'trigger')]}" string="Mark as Done" name="action_done"
type="object" class="btn-secondary"
type="object" class="btn-secondary" data-hotkey="w"
context="{'mail_activity_quick_update': True}"/>
<button attrs="{'invisible': [('chaining_type', '=', 'trigger')]}" string="Done &amp; Schedule Next" name="action_done_schedule_next"
type="object" class="btn-secondary"
type="object" class="btn-secondary" data-hotkey="x"
context="{'mail_activity_quick_update': True}"/>
<button attrs="{'invisible': [('chaining_type', '=', 'suggest')]}" string="Done &amp; Launch Next" name="action_done_schedule_next"
type="object" class="btn-secondary"
type="object" class="btn-secondary" data-hotkey="x"
context="{'mail_activity_quick_update': True}"/>
<button string="Discard" class="btn-secondary" special="cancel" />
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</sheet>
</form>
+2 -2
View File
@@ -19,8 +19,8 @@
</group>
<footer>
<button string="Add Followers"
name="add_followers" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
name="add_followers" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -10,8 +10,8 @@
<field name="reason" string="Reason"/>
</group>
<footer>
<button name="action_unblacklist_apply" string="Confirm" type="object" class="btn-primary"/>
<button string="Discard" class="btn-secondary" special="cancel"/>
<button name="action_unblacklist_apply" string="Confirm" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -75,9 +75,9 @@
context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/>
</group>
<footer>
<button string="Send" attrs="{'invisible': [('is_log', '=', True)]}" name="action_send_mail" type="object" class="btn-primary o_mail_send"/>
<button string="Log" attrs="{'invisible': [('is_log', '=', False)]}" name="action_send_mail" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button string="Send" attrs="{'invisible': [('is_log', '=', True)]}" name="action_send_mail" type="object" class="btn-primary o_mail_send" data-hotkey="q"/>
<button string="Log" attrs="{'invisible': [('is_log', '=', False)]}" name="action_send_mail" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
<button icon="fa-lg fa-save" type="object" name="save_as_template" string="Save as new template"
class="float-right btn-secondary" help="Save as a new template"/>
@@ -11,8 +11,8 @@
<p>If you want to re-send them, click Cancel now, then click on the notification and review them one by one by clicking on the red envelope next to each message.</p>
<img src="/mail/static/img/red_envelope.png" alt="Envelope Example"/>
<footer>
<button string="Discard delivery failures" name="cancel_resend_action" type="object" class="btn-primary" />
<button string="Cancel" class="btn-secondary" special="cancel" />
<button string="Discard delivery failures" name="cancel_resend_action" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -25,9 +25,9 @@
<span class="fa fa-info-circle"/> Caution: It won't be possible to send this mail again to the recipients you did not select.
</div>
<footer>
<button string="Resend to selected" name="resend_mail_action" type="object" class="btn-primary o_mail_send"/>
<button string="Ignore all failures" name="cancel_mail_action" type="object" class="btn-secondary" />
<button string="Cancel" class="btn-secondary" special="cancel" />
<button string="Resend to selected" name="resend_mail_action" type="object" class="btn-primary o_mail_send" data-hotkey="q"/>
<button string="Ignore all failures" name="cancel_mail_action" type="object" class="btn-secondary" data-hotkey="w" />
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -40,7 +40,7 @@
<field name="body_html" widget="html" nolabel="1" options='{"safe": True}'/>
<field name="attachment_ids" widget="many2many_binary"/>
<footer>
<button string="Close" class="btn-secondary" special="cancel"/>
<button string="Close" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -121,8 +121,8 @@
<field name="is_public"/>
</group>
<footer>
<button string="Create" name="close_dialog" type="object" class="btn-primary"/>
<button string="Discard" class="btn-secondary" special="cancel"/>
<button string="Create" name="close_dialog" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -54,13 +54,13 @@
<form string="Mailing" class="o_mass_mailing_mailing_form">
<header style="min-height:31px;">
<button name="action_launch" type="object" class="oe_highlight" string="Send"
attrs="{'invisible': [('state', 'in', ('in_queue', 'sending', 'done'))]}"
attrs="{'invisible': [('state', 'in', ('in_queue', 'sending', 'done'))]}" data-hotkey="v"
confirm="This will send the email to all recipients. Do you still want to proceed ?"/>
<button name="action_schedule" type="object" class="btn-secondary" string="Schedule"
attrs="{'invisible': [('state', 'in', ('in_queue', 'sending', 'done'))]}"/>
<button name="action_test" type="object" class="btn-secondary" string="Test"/>
<button name="action_cancel" type="object" attrs="{'invisible': [('state', '!=', 'in_queue')]}" class="btn-secondary" string="Cancel"/>
<button name="action_retry_failed" type="object" attrs="{'invisible': ['|', ('state', '!=', 'done'), ('failed', '=', 0)]}" class="oe_highlight" string="Retry"/>
attrs="{'invisible': [('state', 'in', ('in_queue', 'sending', 'done'))]}" data-hotkey="x"/>
<button name="action_test" type="object" class="btn-secondary" string="Test" data-hotkey="k"/>
<button name="action_cancel" type="object" attrs="{'invisible': [('state', '!=', 'in_queue')]}" class="btn-secondary" string="Cancel" data-hotkey="z"/>
<button name="action_retry_failed" type="object" attrs="{'invisible': ['|', ('state', '!=', 'done'), ('failed', '=', 0)]}" class="oe_highlight" string="Retry" data-hotkey="y"/>
<field name="state" readonly="1" widget="statusbar"/>
</header>
@@ -11,9 +11,9 @@
<field name="contact_ids" invisible="1"/>
</group>
<footer>
<button string="Add" name="action_add_contacts" type="object" class="btn-primary"/>
<button string="Add and Send Mailing" name="action_add_contacts_and_send_mailing" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button string="Add" name="action_add_contacts" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Add and Send Mailing" name="action_add_contacts_and_send_mailing" type="object" class="btn-primary" data-hotkey="w"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -19,8 +19,8 @@
</tree>
</field>
<footer>
<button name="action_mailing_lists_merge" type="object" string="Merge" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
<button name="action_mailing_lists_merge" type="object" string="Merge" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -11,8 +11,8 @@
</group>
</group>
<footer>
<button string="Schedule" name="action_schedule_date" type="object" class="btn-primary"/>
<button string="Discard " class="btn-secondary" special="cancel" />
<button string="Schedule" name="action_schedule_date" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Discard " class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -13,8 +13,8 @@
<field name="email_to" placeholder="email1@example.com&#10;email2@example.com"/>
</group>
<footer>
<button string="Send" name="send_mail_test" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button string="Send" name="send_mail_test" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -24,11 +24,11 @@
</xpath>
<xpath expr="//button[@name='action_schedule']" position="before">
<button name="action_put_in_queue" type="object"
string="Send" class="oe_highlight"
string="Send" class="oe_highlight" data-hotkey="v"
attrs="{'invisible': ['|', '|', ('mailing_type', '=', 'mail'), ('state', 'in', ('in_queue', 'sending', 'done')), ('sms_force_send', '=', True)]}"
confirm="This will send SMS to all recipients. Do you still want to proceed ?"/>
<button name="action_send_mail" type="object"
string="Send Now" class="oe_highlight"
string="Send Now" class="oe_highlight" data-hotkey="g"
attrs="{'invisible': ['|', '|', '|', ('mailing_type', '=', 'mail'), ('state', 'in', ('in_queue', 'done')), ('schedule_type', '=', 'scheduled'), ('sms_force_send', '!=', True)]}"
confirm="This will send SMS to all recipients now. Do you still want to proceed ?"/>
</xpath>
@@ -13,8 +13,8 @@
<field name="mailing_id" invisible="1"/>
</group>
<footer>
<button string="Send" name="action_send_sms" type="object" class="btn-primary"/>
<button string="Cancel" class="btn btn-secondary" special="cancel"/>
<button string="Send" name="action_send_sms" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -11,8 +11,8 @@
<field name="member_price"/>
</group>
<footer>
<button string="Invoice Membership" name="membership_invoice" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button string="Invoice Membership" name="membership_invoice" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -12,8 +12,8 @@
</group>
<footer>
<button name="reset_account" string="Confirm" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button name="reset_account" string="Confirm" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
+15 -15
View File
@@ -67,8 +67,8 @@
<field name="confirm_no_consumption" invisible="1"/>
<field name="show_lock" invisible="1"/>
<button name="button_mark_done" attrs="{'invisible': ['|', '|', ('state', 'in', ('draft', 'cancel', 'done', 'to_close')), ('qty_producing', '=', 0), ('confirm_no_consumption', '=', False)]}" string="Validate" type="object" class="oe_highlight"
confirm="There are no components to consume. Are you still sure you want to continue?"/>
<button name="button_mark_done" attrs="{'invisible': ['|', '|', ('state', 'in', ('draft', 'cancel', 'done', 'to_close')), ('qty_producing', '=', 0), ('confirm_no_consumption', '=', True)]}" string="Validate" type="object" class="oe_highlight"/>
confirm="There are no components to consume. Are you still sure you want to continue?" data-hotkey="g"/>
<button name="button_mark_done" attrs="{'invisible': ['|', '|', ('state', 'in', ('draft', 'cancel', 'done', 'to_close')), ('qty_producing', '=', 0), ('confirm_no_consumption', '=', True)]}" string="Validate" type="object" class="oe_highlight" data-hotkey="g"/>
<button name="button_mark_done" attrs="{'invisible': [
'|',
('confirm_no_consumption', '=', True),
@@ -76,7 +76,7 @@
'|',
('state', 'not in', ('confirmed', 'progress')),
('qty_producing', '!=', 0),
('state', '!=', 'to_close')]}" string="Mark as Done" type="object" class="oe_highlight"/>
('state', '!=', 'to_close')]}" string="Mark as Done" type="object" class="oe_highlight" data-hotkey="g"/>
<button name="button_mark_done" attrs="{'invisible': [
'|',
('confirm_no_consumption', '=', False),
@@ -84,23 +84,23 @@
'|',
('state', 'not in', ('confirmed', 'progress')),
('qty_producing', '!=', 0),
('state', '!=', 'to_close')]}" string="Mark as Done" type="object" class="oe_highlight"
('state', '!=', 'to_close')]}" string="Mark as Done" type="object" class="oe_highlight" data-hotkey="g"
confirm="There are no components to consume. Are you still sure you want to continue?"/>
<button name="action_confirm" attrs="{'invisible': [('state', '!=', 'draft')]}" string="Confirm" type="object" class="oe_highlight"/>
<button name="button_plan" attrs="{'invisible': ['|', '|', ('state', 'not in', ('confirmed', 'progress', 'to_close')), ('workorder_ids', '=', []), ('is_planned', '=', True)]}" type="object" string="Plan" class="oe_highlight"/>
<button name="button_unplan" type="object" string="Unplan" attrs="{'invisible': [('is_planned', '=', False)]}"/>
<button name="action_assign" attrs="{'invisible': ['|', ('state', 'in', ('draft', 'done', 'cancel')), ('reserve_visible', '=', False)]}" string="Check availability" type="object"/>
<button name="do_unreserve" type="object" string="Unreserve" attrs="{'invisible': [('unreserve_visible', '=', False)]}"/>
<button name="button_scrap" type="object" string="Scrap" attrs="{'invisible': [('state', 'in', ('cancel', 'draft'))]}"/>
<button name="action_confirm" attrs="{'invisible': [('state', '!=', 'draft')]}" string="Confirm" type="object" class="oe_highlight" data-hotkey="v"/>
<button name="button_plan" attrs="{'invisible': ['|', '|', ('state', 'not in', ('confirmed', 'progress', 'to_close')), ('workorder_ids', '=', []), ('is_planned', '=', True)]}" type="object" string="Plan" class="oe_highlight" data-hotkey="x"/>
<button name="button_unplan" type="object" string="Unplan" attrs="{'invisible': [('is_planned', '=', False)]}" data-hotkey="x"/>
<button name="action_assign" attrs="{'invisible': ['|', ('state', 'in', ('draft', 'done', 'cancel')), ('reserve_visible', '=', False)]}" string="Check availability" type="object" data-hotkey="q"/>
<button name="do_unreserve" type="object" string="Unreserve" attrs="{'invisible': [('unreserve_visible', '=', False)]}" data-hotkey="w"/>
<button name="button_scrap" type="object" string="Scrap" attrs="{'invisible': [('state', 'in', ('cancel', 'draft'))]}" data-hotkey="z"/>
<field name="state" widget="statusbar" statusbar_visible="draft,confirmed,progress,done"/>
<button name="action_toggle_is_locked" attrs="{'invisible': ['|', ('show_lock', '=', False), ('is_locked', '=', False)]}" string="Unlock" groups="mrp.group_mrp_manager" type="object" help="Unlock the manufacturing order to adjust what has been consumed or produced."/>
<button name="action_toggle_is_locked" attrs="{'invisible': ['|', ('show_lock', '=', False), ('is_locked', '=', True)]}" string="Lock" groups="mrp.group_mrp_manager" type="object" help="Lock the manufacturing order to prevent changes to what has been consumed or produced."/>/>
<button name="action_cancel" type="object" string="Cancel"
<button name="action_toggle_is_locked" attrs="{'invisible': ['|', ('show_lock', '=', False), ('is_locked', '=', False)]}" string="Unlock" groups="mrp.group_mrp_manager" type="object" help="Unlock the manufacturing order to adjust what has been consumed or produced." data-hotkey="l"/>
<button name="action_toggle_is_locked" attrs="{'invisible': ['|', ('show_lock', '=', False), ('is_locked', '=', True)]}" string="Lock" groups="mrp.group_mrp_manager" type="object" help="Lock the manufacturing order to prevent changes to what has been consumed or produced." data-hotkey="l"/>/>
<button name="action_cancel" type="object" string="Cancel" data-hotkey="z"
attrs="{'invisible': ['|', '|', ('id', '=', False), ('state', 'in', ('done', 'cancel')), ('confirm_cancel', '=', True)]}"/>
<button name="action_cancel" type="object" string="Cancel"
<button name="action_cancel" type="object" string="Cancel" data-hotkey="z"
attrs="{'invisible': ['|', '|', ('id', '=', False), ('state', 'in', ('done', 'cancel')), ('confirm_cancel', '=', False)]}"
confirm="Some product moves have already been confirmed, this manufacturing order can't be completely cancelled. Are you still sure you want to process ?"/>
<button name="button_unbuild" type="object" string="Unbuild" attrs="{'invisible': [('state', '!=', 'done')]}"/>
<button name="button_unbuild" type="object" string="Unbuild" attrs="{'invisible': [('state', '!=', 'done')]}" data-hotkey="shift+v"/>
</header>
<sheet>
<field name="reservation_state" invisible="1"/>
+3 -3
View File
@@ -89,7 +89,7 @@
<field name="arch" type="xml">
<form string="Unbuild Orders">
<header>
<button name="action_validate" string="Unbuild" type="object" states="draft" class="oe_highlight"/>
<button name="action_validate" string="Unbuild" type="object" states="draft" class="oe_highlight" data-hotkey="v"/>
<field name="state" widget="statusbar" statusbar_visible="draft,done"/>
</header>
<sheet>
@@ -160,8 +160,8 @@
</group>
</sheet>
<footer class="oe_edit_only">
<button name="action_validate" string="Unbuild" type="object" states="draft" class="oe_highlight"/>
<button string="Discard" special="cancel"/>
<button name="action_validate" string="Unbuild" type="object" states="draft" class="oe_highlight" data-hotkey="q"/>
<button string="Discard" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
+2 -2
View File
@@ -217,8 +217,8 @@
<field name="arch" type="xml">
<xpath expr="//notebook" position="after">
<footer>
<button string="Save" special="save" class="btn-primary"/>
<button string="Discard" special="cancel"/>
<button string="Save" special="save" data-hotkey="v" class="btn-primary"/>
<button string="Discard" special="cancel" data-hotkey="z"/>
</footer>
</xpath>
</field>
@@ -13,9 +13,9 @@
<field name="mo_id" invisible="1"/>
</group>
<footer>
<button name="change_prod_qty" string="Approve"
<button name="change_prod_qty" string="Approve" data-hotkey="q"
colspan="1" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -33,12 +33,12 @@
</tree>
</field>
<footer>
<button name="action_confirm" string="Force"
<button name="action_confirm" string="Force" data-hotkey="q"
groups="mrp.group_mrp_manager" attrs="{'invisible': [('consumption', '!=', 'strict')]}"
colspan="1" type="object" class="btn-primary"/>
<button name="action_confirm" string="Confirm" attrs="{'invisible': [('consumption', '=', 'strict')]}"
<button name="action_confirm" string="Confirm" attrs="{'invisible': [('consumption', '=', 'strict')]}" data-hotkey="q"
colspan="1" type="object" class="btn-primary"/>
<button name="action_cancel" string="Review Consumption"
<button name="action_cancel" string="Review Consumption" data-hotkey="w"
colspan="1" type="object" class="btn-primary"/>
</footer>
</form>
@@ -18,8 +18,8 @@
</field>
<footer>
<button name="process" string="Apply" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button name="process" string="Apply" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -21,12 +21,12 @@
</tree>
</field>
<footer>
<button name="action_backorder" string="Create backorder"
<button name="action_backorder" string="Create backorder" data-hotkey="q"
colspan="1" type="object" class="btn-primary" attrs="{'invisible': [('show_backorder_lines', '!=', False)]}"/>
<button name="action_backorder" string="Validate"
<button name="action_backorder" string="Validate" data-hotkey="q"
colspan="1" type="object" class="btn-primary" attrs="{'invisible': [('show_backorder_lines', '=', False)]}"/>
<button name="action_close_mo" type="object" string="No Backorder" attrs="{'invisible': [('show_backorder_lines', '!=', False)]}"/>
<button string="Discard" class="btn-secondary" special="cancel" />
<button name="action_close_mo" type="object" string="No Backorder" attrs="{'invisible': [('show_backorder_lines', '!=', False)]}" data-hotkey="x"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -13,8 +13,8 @@
<field name="company_id" invisible="1"/>
</group>
<footer>
<button name="button_block" string="Block" type="object" class="btn-danger text-uppercase"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button name="button_block" string="Block" type="object" class="btn-danger text-uppercase" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -26,7 +26,7 @@
type="object"
attrs="{'invisible': [('production_ids', '=', [])]}"
class="btn-primary"/>
<button special="cancel"
<button special="cancel" data-hotkey="z"
string="Discard"
attrs="{'invisible': [('production_ids', '=', [])]}"
class="btn-secondary"/>
@@ -46,9 +46,9 @@
</xpath>
<xpath expr="//sheet" position="inside">
<footer>
<button name="subcontracting_record_component" attrs="{'invisible': ['|', ('state', '=', 'to_close'), ('qty_producing', '&lt;', 0.001)]}" string="Continue" type="object" class="oe_highlight"/>
<button name="subcontracting_record_component" attrs="{'invisible': [('state', '!=', 'to_close')]}" string="Record Production" type="object" class="oe_highlight"/>
<button string="Discard" special="cancel" />
<button name="subcontracting_record_component" attrs="{'invisible': ['|', ('state', '=', 'to_close'), ('qty_producing', '&lt;', 0.001)]}" string="Continue" type="object" class="oe_highlight" data-hotkey="q"/>
<button name="subcontracting_record_component" attrs="{'invisible': [('state', '!=', 'to_close')]}" string="Record Production" type="object" class="oe_highlight" data-hotkey="q"/>
<button string="Discard" special="cancel" data-hotkey="z" />
</footer>
</xpath>
</field>
@@ -7,7 +7,7 @@
<field name="arch" type="xml">
<xpath expr="//button[@name='button_validate'][hasclass('o_btn_validate')]" position="before">
<field name="display_action_record_components" invisible="1" />
<button name="action_record_components" class="oe_highlight" attrs="{'invisible': [('display_action_record_components', '=', False)]}" string="Record components" type="object"/>
<button name="action_record_components" class="oe_highlight" attrs="{'invisible': [('display_action_record_components', '=', False)]}" string="Record components" type="object" data-hotkey="shift+x"/>
</xpath>
<xpath expr="//field[@name='move_ids_without_package']//tree//button[@name='action_show_details']" position="after">
<field name="show_subcontracting_details_visible" invisible="1"/>
@@ -15,10 +15,10 @@
<xpath expr="//button[@id='account_invoice_payment_btn']" position="after">
<field name="authorized_transaction_ids" invisible="1"/>
<button name="payment_action_capture" type="object"
string="Capture Transaction" class="oe_highlight"
string="Capture Transaction" class="oe_highlight" data-hotkey="shift+g"
attrs="{'invisible': ['|', '|', ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), ('state', '!=', 'posted'), ('authorized_transaction_ids', '=', [])]}"/>
<button name="payment_action_void" type="object"
string="Void Transaction"
string="Void Transaction" data-hotkey="shift+v"
confirm="Are you sure you want to void the authorized transaction? This action can't be undone."
attrs="{'invisible': ['|', '|', ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), ('state', '!=', 'posted'), ('authorized_transaction_ids', '=', [])]}"/>
</xpath>
@@ -75,8 +75,8 @@
</div>
<footer>
<button name="add_payment_methods" string="Apply" class="oe_highlight"
type="object" />
<button special="cancel" string="Cancel" />
type="object" data-hotkey="q" />
<button special="cancel" data-hotkey="z" string="Cancel" />
</footer>
</form>
</field>
@@ -32,7 +32,7 @@
<p class="alert alert-warning font-weight-bold" role="alert">This partner has no email, which may cause issues with some payment acquirers. Setting an email for this partner is advised.</p>
</group>
<footer>
<button string="Close" class="btn-primary" special="cancel"/>
<button string="Close" class="btn-primary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -10,8 +10,8 @@
<field name="reason" string="Reason"/>
</group>
<footer>
<button name="action_unblacklist_apply" string="Confirm" type="object" class="btn-primary"/>
<button string="Discard" class="btn-secondary" special="cancel"/>
<button name="action_unblacklist_apply" string="Confirm" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -236,8 +236,8 @@
<span>There is a difference between the expected and actual closing in cash. Are you sure you want to close the session and post the accounting entries?</span>
</group>
<footer>
<button name="confirm_closing_balance" string="Confirm" type="object" class="oe_highlight, btn-primary" />
<button string="Discard" special="cancel" class="oe_highlight, btn-secondary"/>
<button name="confirm_closing_balance" string="Confirm" type="object" class="oe_highlight, btn-primary" data-hotkey="q"/>
<button string="Discard" special="cancel" data-hotkey="z" class="oe_highlight, btn-secondary"/>
</footer>
</form>
</field>
@@ -12,8 +12,8 @@
<field name="account_id" attrs="{'readonly': [('account_readonly', '==', True)]}"/>
</group>
<footer>
<button name="close_session" string="Close Session" type="object" class="btn-primary" />
<button special="cancel" string="Cancel" class="btn-secondary" />
<button name="close_session" string="Close Session" type="object" class="btn-primary" data-hotkey="q"/>
<button special="cancel" data-hotkey="z" string="Cancel" class="btn-secondary" />
</footer>
</form>
</field>
+2 -2
View File
@@ -13,8 +13,8 @@
<field name="pos_config_ids" mode="tree" colspan="4" nolabel="1" />
</group>
<footer>
<button name="generate_report" string="Print" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button name="generate_report" string="Print" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
+2 -2
View File
@@ -12,8 +12,8 @@
<field name="payment_name"/>
</group>
<footer>
<button name="check" string="Make Payment" type="object" class="btn-primary"/>
<button special="cancel" string="Cancel" class="btn-secondary"/>
<button name="check" string="Make Payment" type="object" class="btn-primary" data-hotkey="q"/>
<button special="cancel" data-hotkey="z" string="Cancel" class="btn-secondary"/>
</footer>
</form>
</field>
+2 -2
View File
@@ -18,8 +18,8 @@
<field name="note" placeholder="Add a note"/>
</group>
<footer>
<button string="Send" name="action_send_mail" attrs="{'invisible': [('access_warning', '!=', '')]}" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-default" special="cancel" />
<button string="Send" name="action_send_mail" attrs="{'invisible': [('access_warning', '!=', '')]}" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-default" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
+1 -1
View File
@@ -49,7 +49,7 @@
</tree>
</field>
<footer>
<button string="Close" class="btn-primary" special="save" />
<button string="Close" class="btn-primary" special="save" data-hotkey="v" />
</footer>
</form>
</field>
@@ -19,14 +19,16 @@
<button name="process"
string="Confirm"
type="object"
data-hotkey="q"
class="btn-primary"/>
<button name="process_no_expired"
string="Proceed except for expired one"
type="object"
data-hotkey="w"
class="btn-secondary"/>
<button string="Discard"
class="btn-secondary"
special="cancel"/>
special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -11,8 +11,8 @@
<field name="invoice_state" />
</group>
<footer>
<button name="action_open_window" string="Open Margins" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
<button name="action_open_window" string="Open Margins" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
+3 -3
View File
@@ -502,8 +502,8 @@
<field name="arch" type="xml">
<xpath expr="//group" position="after">
<footer>
<button string="Create" name="action_view_tasks" type="object" class="btn-primary o_open_tasks"/>
<button string="Discard" class="btn-secondary" special="cancel"/>
<button string="Create" name="action_view_tasks" type="object" class="btn-primary o_open_tasks" data-hotkey="q"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</xpath>
</field>
@@ -687,7 +687,7 @@
<field name="allow_task_dependencies" invisible="1" />
<header>
<button name="action_assign_to_me" string="Assign to Me" type="object" class="oe_highlight"
attrs="{'invisible' : [('user_id', '!=', False)]}"/>
attrs="{'invisible' : [('user_id', '!=', False)]}" data-hotkey="q"/>
<field name="stage_id" widget="statusbar" options="{'clickable': '1', 'fold_field': 'fold'}" attrs="{'invisible': [('project_id', '=', False), ('stage_id', '=', False)]}"/>
</header>
<div class="alert alert-info oe_edit_only" role="status" attrs="{'invisible': ['|', ('recurring_task', '=', False), ('recurrence_id', '=', False)]}">
@@ -15,12 +15,12 @@
<span>Are you sure you want to delete this project ?</span>
</group>
<footer attrs="{'invisible': [('task_count', '=', 0)]}">
<button string="Archive project" type="object" name="action_archive" class="btn btn-primary" attrs="{'invisible': [('projects_archived', '=', True)]}" />
<button string="Discard" special="cancel" />
<button string="Archive project" type="object" name="action_archive" class="btn btn-primary" attrs="{'invisible': [('projects_archived', '=', True)]}" data-hotkey="q"/>
<button string="Discard" special="cancel" data-hotkey="z" />
</footer>
<footer attrs="{'invisible': [('task_count', '>', 0)]}">
<button string="Ok" type="object" name="confirm_delete" class="btn btn-primary" />
<button string="Cancel" special="cancel" />
<button string="Ok" type="object" name="confirm_delete" class="btn btn-primary" data-hotkey="q"/>
<button string="Cancel" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
@@ -17,9 +17,9 @@
<p>You cannot delete stages containing tasks. You should first delete all of their tasks.</p>
</div>
<footer>
<button string="Archive Stages" type="object" name="action_archive" class="btn btn-primary" attrs="{'invisible': ['|', ('stages_active', '=', False), ('tasks_count', '=', 0)]}" />
<button string="Delete" type="object" name="action_unlink" class="btn btn-primary" attrs="{'invisible': [('tasks_count', '>', 0)]}" />
<button string="Discard" special="cancel" />
<button string="Archive Stages" type="object" name="action_archive" class="btn btn-primary" attrs="{'invisible': ['|', ('stages_active', '=', False), ('tasks_count', '=', 0)]}" data-hotkey="q"/>
<button string="Delete" type="object" name="action_unlink" class="btn btn-primary" attrs="{'invisible': [('tasks_count', '>', 0)]}" data-hotkey="w"/>
<button string="Discard" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
@@ -40,8 +40,8 @@
<p>Are you sure you want to continue?</p>
</div>
<footer>
<button string="Confirm" type="object" name="action_confirm" class="btn btn-primary"/>
<button string="Discard" special="cancel" />
<button string="Confirm" type="object" name="action_confirm" class="btn btn-primary" data-hotkey="q"/>
<button string="Discard" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
+14 -14
View File
@@ -134,21 +134,21 @@
<field name="arch" type="xml">
<form string="Purchase Order" class="o_purchase_order">
<header>
<button name="action_rfq_send" states="draft" string="Send by Email" type="object" context="{'send_rfq':True}" class="oe_highlight"/>
<button name="print_quotation" string="Print RFQ" type="object" states="draft" class="oe_highlight" groups="base.group_user"/>
<button name="button_confirm" type="object" states="sent" string="Confirm Order" class="oe_highlight" id="bid_confirm"/>
<button name="button_approve" type="object" states='to approve' string="Approve Order" class="oe_highlight" groups="purchase.group_purchase_manager"/>
<button name="action_create_invoice" string="Create Bill" type="object" class="oe_highlight" context="{'create_bill':True}" attrs="{'invisible': ['|', ('state', 'not in', ('purchase', 'done')), ('invoice_status', 'in', ('no', 'invoiced'))]}"/>
<button name="action_rfq_send" states="sent" string="Re-Send by Email" type="object" context="{'send_rfq':True}"/>
<button name="print_quotation" string="Print RFQ" type="object" states="sent" groups="base.group_user"/>
<button name="action_rfq_send" states="draft" string="Send by Email" type="object" context="{'send_rfq':True}" class="oe_highlight" data-hotkey="g"/>
<button name="print_quotation" string="Print RFQ" type="object" states="draft" class="oe_highlight" groups="base.group_user" data-hotkey="k"/>
<button name="button_confirm" type="object" states="sent" string="Confirm Order" class="oe_highlight" id="bid_confirm" data-hotkey="v"/>
<button name="button_approve" type="object" states='to approve' string="Approve Order" class="oe_highlight" groups="purchase.group_purchase_manager" data-hotkey="z"/>
<button name="action_create_invoice" string="Create Bill" type="object" class="oe_highlight" context="{'create_bill':True}" attrs="{'invisible': ['|', ('state', 'not in', ('purchase', 'done')), ('invoice_status', 'in', ('no', 'invoiced'))]}" data-hotkey="w"/>
<button name="action_rfq_send" states="sent" string="Re-Send by Email" type="object" context="{'send_rfq':True}" data-hotkey="g"/>
<button name="print_quotation" string="Print RFQ" type="object" states="sent" groups="base.group_user" data-hotkey="k"/>
<button name="button_confirm" type="object" states="draft" string="Confirm Order" id="draft_confirm"/>
<button name="action_rfq_send" states="purchase" string="Send PO by Email" type="object" context="{'send_rfq':False}"/>
<button name="confirm_reminder_mail" string="Confirm Receipt Date" type="object" attrs="{'invisible': ['|','|', ('state', 'not in', ('purchase', 'done')), ('mail_reminder_confirmed', '=', True), ('date_planned', '=', False)]}" groups="base.group_no_one"/>
<button name="action_create_invoice" string="Create Bill" type="object" context="{'create_bill':True}" attrs="{'invisible': ['|', '|', ('state', 'not in', ('purchase', 'done')), ('invoice_status', 'not in', ('no', 'invoiced')), ('order_line', '=', [])]}"/>
<button name="button_draft" states="cancel" string="Set to Draft" type="object" />
<button name="button_cancel" states="draft,to approve,sent,purchase" string="Cancel" type="object" />
<button name="button_done" type="object" string="Lock" states="purchase"/>
<button name="button_unlock" type="object" string="Unlock" states="done" groups="purchase.group_purchase_manager"/>
<button name="action_rfq_send" states="purchase" string="Send PO by Email" type="object" context="{'send_rfq':False}" data-hotkey="g"/>
<button name="confirm_reminder_mail" string="Confirm Receipt Date" type="object" attrs="{'invisible': ['|','|', ('state', 'not in', ('purchase', 'done')), ('mail_reminder_confirmed', '=', True), ('date_planned', '=', False)]}" groups="base.group_no_one" data-hotkey="o"/>
<button name="action_create_invoice" string="Create Bill" type="object" context="{'create_bill':True}" attrs="{'invisible': ['|', '|', ('state', 'not in', ('purchase', 'done')), ('invoice_status', 'not in', ('no', 'invoiced')), ('order_line', '=', [])]}" data-hotkey="w"/>
<button name="button_draft" states="cancel" string="Set to Draft" type="object" data-hotkey="o"/>
<button name="button_cancel" states="draft,to approve,sent,purchase" string="Cancel" type="object" data-hotkey="x" />
<button name="button_done" type="object" string="Lock" states="purchase" data-hotkey="l"/>
<button name="button_unlock" type="object" string="Unlock" states="done" groups="purchase.group_purchase_manager" data-hotkey="l"/>
<field name="state" widget="statusbar" statusbar_visible="draft,sent,purchase" readonly="1"/>
</header>
<sheet>

Some files were not shown because too many files have changed in this diff Show More