【问题标题】:Odoo 10.0 change POS LogoOdoo 10.0 更改 POS 标志
【发布时间】:2017-01-11 02:38:27
【问题描述】:

我已经能够通过激活开发者模式来更改 General Odoo 徽标。然后点击它自己的标志和“编辑公司数据”,选择标志。

但这不适用于 POS。徽标仍然是默认的 Odoo 徽标。如何改变它?

如何更改 POS / 销售点的标志?

【问题讨论】:

    标签: openerp odoo-9 odoo-view odoo-website


    【解决方案1】:

    我认为为它创建一个模块比编辑核心代码更好。

    创建一个模块,例如:test_pos

    添加以下代码

    test_pos/__openerp__.py

    {
        'name': 'Company POS LOGO',
        'version': '1.0.0',
        'category': 'web',
        'sequence': 3,
        'author': 'LOYAL',
        'depends': ['web','point_of_sale','mail'
        ],
        'data': [
            # 'change_view.xml',
            'templates.xml',
    
        ],
        'qweb':['static/src/xml/poschange.xml'],
        'installable': True,
        'application': True,
        'auto_install': False,
    }
    

    创建 poschange.xml 及以下代码

    test_pos/static/src/xml/poschange.xml

    <?xml version="1.0" encoding="utf-8"?>
    <templates id='template' xmlspace='preserve'>
    <t t-extend="Chrome">
        <t t-jquery=".pos-logo" t-operation="replace">
          <img class="pos-logo" src="/test_pos/static/src/img/logo.png" />  
        </t>
      </t>
    
    </templates>
    

    在中添加要替换为pos logo的图片

    /test_pos/static/src/img/

    【讨论】:

      【解决方案2】:

      这是这个的简单解决方案。

      只需要替换point_of_sale module.中路径下的logo.png文件

      **point_of_sale/static/src/img/logo.png**
      

      【讨论】:

      • 不推荐这样做,因为它最终可能会在更高版本更新时被覆盖。
      猜你喜欢
      • 1970-01-01
      • 2018-09-30
      • 2019-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-20
      • 1970-01-01
      • 2019-08-20
      相关资源
      最近更新 更多