Añade la funcionalidad de pos_empty_default_image pra poder mostraar el formato en productos sin imagen
This commit is contained in:
parent
f1c8cf8414
commit
913de79db8
14 changed files with 284 additions and 41 deletions
29
product_library/views/pos_config.xml
Normal file
29
product_library/views/pos_config.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 2020 Creu Blanca
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record model="ir.ui.view" id="pos_config_view_form">
|
||||
<field name="model">pos.config</field>
|
||||
<field name="inherit_id" ref="point_of_sale.pos_config_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='iface_big_scrollbars']/../.." position="after">
|
||||
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="iface_fixed_font_size" string="Fixed Font Size"/>
|
||||
<div class="text-muted">
|
||||
Font size of the product name, when it has no image. Set '0' will set adaptative font-size, depending on the length of the name.
|
||||
</div>
|
||||
<div class="content-group mt16">
|
||||
<field name="iface_fixed_font_size"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
|
@ -3,8 +3,9 @@
|
|||
|
||||
<template id="assets_backend" name="product_library" inherit_id="point_of_sale.assets">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/product_library/static/src/js/product_library.js"></script>
|
||||
<script type="text/javascript" src="/product_library/static/src/js/models.js"></script>
|
||||
<script type="text/javascript" src="/product_library/static/src/js/db.js"/>
|
||||
<script type="text/javascript" src="/product_library/static/src/js/widgets.js"></script>
|
||||
</xpath>
|
||||
<xpath expr="//link[@id='pos-stylesheet']" position="after">
|
||||
<link
|
||||
|
@ -23,7 +24,7 @@
|
|||
<xpath expr="." position="inside">
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/pos_library/static/src/js/test_pos_format.js"
|
||||
src="/product_library/static/src/js/test_pos_format.js"
|
||||
/>
|
||||
</xpath>
|
||||
</template> -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue