Browse Source

Dec 19 : [UPDT] Updated 'point_of_sale_logo'

pull/295/head
AjmalCybro 1 year ago
parent
commit
c2cdc48e2f
  1. 2
      point_of_sale_logo/__init__.py
  2. 2
      point_of_sale_logo/__manifest__.py
  3. 2
      point_of_sale_logo/models/__init__.py
  4. 1
      point_of_sale_logo/models/pos_config_image.py
  5. 4
      point_of_sale_logo/static/src/xml/pos_screen_image_view.xml
  6. 4
      point_of_sale_logo/static/src/xml/pos_ticket_view.xml
  7. 2
      point_of_sale_logo/views/pos_config_image_view.xml

2
point_of_sale_logo/__init__.py

@ -19,6 +19,4 @@
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################# #############################################################################
from . import models from . import models

2
point_of_sale_logo/__manifest__.py

@ -19,7 +19,6 @@
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################# #############################################################################
{ {
'name': 'Point of Sale Logo', 'name': 'Point of Sale Logo',
'version': '16.0.1.0.0', 'version': '16.0.1.0.0',
@ -47,4 +46,3 @@
'application': True, 'application': True,
'Sequence': 1 'Sequence': 1
} }

2
point_of_sale_logo/models/__init__.py

@ -19,6 +19,4 @@
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################# #############################################################################
from . import pos_config_image from . import pos_config_image

1
point_of_sale_logo/models/pos_config_image.py

@ -19,7 +19,6 @@
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################# #############################################################################
from odoo import models, fields from odoo import models, fields

4
point_of_sale_logo/static/src/xml/pos_screen_image_view.xml

@ -3,7 +3,7 @@
<t t-name="Chrome" t-inherit="point_of_sale.Chrome" t-inherit-mode="extension" owl="1"> <t t-name="Chrome" t-inherit="point_of_sale.Chrome" t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('pos-branding')]/img" position="replace"> <xpath expr="//div[hasclass('pos-branding')]/img" position="replace">
<img class="pos-logo" t-on-click="() => this.trigger('toggle-debug-widget')" <img class="pos-logo" t-on-click="() => this.trigger('toggle-debug-widget')"
t-attf-src="/web/image?model=pos.config&amp;field=image&amp;id={{ env.pos.config.id }}&amp;unique=1" alt="Logo" /> t-attf-src="/web/image/pos.config/{{env.pos.config.id }}/image" alt="Logo"/>
</xpath> </xpath>
</t> </t>
</templates> </templates>

4
point_of_sale_logo/static/src/xml/pos_ticket_view.xml

@ -4,9 +4,9 @@
<xpath expr="//img[hasclass('pos-receipt-logo')]" position="after"> <xpath expr="//img[hasclass('pos-receipt-logo')]" position="after">
<div style="width:20%;float:left;"> <div style="width:20%;float:left;">
<t> <t>
<img t-attf-src="/web/image?model=pos.config&amp;field=image&amp;id={{env.pos.config.id}}&amp;unique=1" style="width:100%"/> <img t-attf-src="/web/image/pos.config/{{env.pos.config.id }}/image" alt="Logo" style="width:100%"/>
</t> </t>
</div> </div>
</xpath> </xpath>
</t> </t>
</templates> </templates>

2
point_of_sale_logo/views/pos_config_image_view.xml

@ -12,4 +12,4 @@
</field> </field>
</record> </record>
</data> </data>
</odoo> </odoo>

Loading…
Cancel
Save