|
|
@ -2,60 +2,89 @@ |
|
|
|
<odoo> |
|
|
|
<!-- Inheriting the config setting and add the values for printer --> |
|
|
|
<record id="res_config_settings_view_form" model="ir.ui.view"> |
|
|
|
<field name="name">res.config.settings.view.form.inherit.direct.print.odoo</field> |
|
|
|
<field name="name"> |
|
|
|
res.config.settings.view.form.inherit.direct.print.odoo |
|
|
|
</field> |
|
|
|
<field name="model">res.config.settings</field> |
|
|
|
<field name="priority" eval="20"/> |
|
|
|
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/> |
|
|
|
<field name="inherit_id" |
|
|
|
ref="base_setup.res_config_settings_view_form"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<xpath expr="//div[@id='invite_users']" position="after"> |
|
|
|
<xpath expr="//div[hasclass('settings')]" position="inside"> |
|
|
|
<div class="app_settings_block" |
|
|
|
data-string="Direct Print" |
|
|
|
string="Direct Print" |
|
|
|
data-key="direct_print_odoo"> |
|
|
|
<h2>Direct Print Odoo</h2> |
|
|
|
<div class="row mt16 o_settings_container"> |
|
|
|
<div class="col-xs-12 col-md-6 o_setting_box" |
|
|
|
id="print_node_settings"> |
|
|
|
<div class="o_setting_box o_searchable_setting col-12 col-lg-6"> |
|
|
|
<div class="o_setting_left_pane"/> |
|
|
|
<div class="o_setting_right_pane"> |
|
|
|
<label class="o_form_label" |
|
|
|
for="api_key_print_node">API Key |
|
|
|
</label> |
|
|
|
<div class="text-muted"> |
|
|
|
Define your API Key of the printnode |
|
|
|
</div> |
|
|
|
<div class="content-group"> |
|
|
|
<div class="row mt8"> |
|
|
|
<label class="col-lg-3" string="Api Key" |
|
|
|
for="api_key_print_node"/> |
|
|
|
<field name="api_key_print_node" help='API Key of the printnode'/> |
|
|
|
<div class="mt16"> |
|
|
|
<field name="api_key_print_node" |
|
|
|
help='API Key of the printnode' |
|
|
|
password="1"/> |
|
|
|
</div> |
|
|
|
<div class="row mt8"> |
|
|
|
<label class="col-lg-3" string="End Url" |
|
|
|
for="url_print_node"/> |
|
|
|
<field name="url_print_node" help='URL of the printnode'/> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="o_setting_box o_searchable_setting col-12 col-lg-6"> |
|
|
|
<div class="o_setting_right_pane"> |
|
|
|
<label class="o_form_label" |
|
|
|
for="available_printers_id"> |
|
|
|
Printers |
|
|
|
</label> |
|
|
|
<div class="text-muted"> |
|
|
|
Check Your available printers |
|
|
|
</div> |
|
|
|
<div class="col-12 col-lg-6 o_setting_box" attrs="{'invisible':[('multiple_printers','!=',False)]}" |
|
|
|
<div class="content-group"> |
|
|
|
<div class="mt16" |
|
|
|
attrs="{'invisible':[('multiple_printers','!=',False)]}" |
|
|
|
id="active_printers"> |
|
|
|
<div class="o_setting_right_pane"> |
|
|
|
<button name="action_check_printers" |
|
|
|
string="Check available printers" |
|
|
|
type="object" class="btn-primary"/> |
|
|
|
type="object" |
|
|
|
class="btn-primary"/> |
|
|
|
<div class="row mt8"> |
|
|
|
<label class="col-lg-3" |
|
|
|
string="Default Printer" |
|
|
|
for="available_printers_id"/> |
|
|
|
<field name="available_printers_id" help='Available printers'/> |
|
|
|
</div> |
|
|
|
<field name="available_printers_id" |
|
|
|
help='Available printers'/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-12 col-lg-6 o_setting_box" |
|
|
|
id="active_printers"> |
|
|
|
<div class="o_setting_right_pane"> |
|
|
|
<div class="row mt8"> |
|
|
|
<div class="row mt8" |
|
|
|
attrs="{'invisible':[('multiple_printers','=',False)]}"> |
|
|
|
<label class="col-lg-3" |
|
|
|
string="Multiple printers" |
|
|
|
for="multiple_printers"/> |
|
|
|
<field name="multiple_printers" help="Enable if you have Multiple |
|
|
|
string="Select Printers" |
|
|
|
for="printers_ids"/> |
|
|
|
<field name="printers_ids" |
|
|
|
widget="many2many_tags"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="o_setting_box o_searchable_setting col-12 col-lg-6"> |
|
|
|
<div class="o_setting_left_pane"> |
|
|
|
<div name="external_email_server_default" |
|
|
|
class="o_field_widget o_field_boolean"> |
|
|
|
<field name="multiple_printers" |
|
|
|
help="Enable if you have Multiple |
|
|
|
Printers"/> |
|
|
|
</div> |
|
|
|
<div class="row mt8" attrs="{'invisible':[('multiple_printers','=',False)]}"> |
|
|
|
</div> |
|
|
|
<div class="o_setting_right_pane"> |
|
|
|
<label class="col-lg-3" |
|
|
|
string="Select Printers" |
|
|
|
for="printers_ids"/> |
|
|
|
<field name="printers_ids" widget="many2many_tags"/> |
|
|
|
string="Multiple Printers" |
|
|
|
for="multiple_printers"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|