You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
3.5 KiB
65 lines
3.5 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<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="model">res.config.settings</field>
|
|
<field name="priority" eval="20"/>
|
|
<field name="inherit_id"
|
|
ref="base_setup.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form" position="inside">
|
|
<app data-string="Direct Print" string="Direct Print"
|
|
name="direct_print_odoo">
|
|
<block title="Direct Print"
|
|
name="direct_print_odoo_setting_container">
|
|
<setting id="api_control_setting"
|
|
help="Define your API Key of the print-node"
|
|
title="API Key" string="API Key">
|
|
<div class="content-group" name="api_key_options">
|
|
<div class="d-flex">
|
|
<field name="api_key_print_node" password="1"
|
|
class="ml16"/>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
<setting id="available_printer_setting"
|
|
help="Check Your available printers choose
|
|
any printer for the report."
|
|
string="Available Printers"
|
|
title="Available Printers"
|
|
invisible="multiple_printers != False">
|
|
<div class="content-group" name="api_key_options">
|
|
<field name="available_printers_id"
|
|
options="{'no_create': True, 'no_open': True}"
|
|
help='Available printers'/>
|
|
<div class="oe_inline">
|
|
<button name="action_check_printers"
|
|
string="Check available printers"
|
|
type="object" class="btn-primary"/>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
<setting string="Multiple Printers"
|
|
help="You can choose more than one printers
|
|
only after Enable this option"
|
|
title="Available Printers">
|
|
<field name="multiple_printers"
|
|
help="Enable if you have Multiple Printers"/>
|
|
<div class="d-flex mt-1"
|
|
invisible="multiple_printers == False">
|
|
<field name="printers_ids"
|
|
widget="many2many_tags" class="ml16"
|
|
options="{'no_create': True, 'no_open': True}"/>
|
|
<label for="printers_ids"
|
|
class="o_light_label"/>
|
|
</div>
|
|
</setting>
|
|
</block>
|
|
</app>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|