Browse Source

Add Spanish translation by Alejandro Amador (thanks for your contribution !)

Move CSS definition from pos_payment_terminal_view.xml to pos_payment_terminal.xml
Small cleanups
pull/440/head
Alexis de Lattre 10 years ago
committed by Sylvain LE GAL
parent
commit
6a166aa644
  1. 0
      pos_payment_terminal/__init__.py
  2. 0
      pos_payment_terminal/__openerp__.py
  3. 22
      pos_payment_terminal/pos_payment_terminal.xml
  4. 11
      pos_payment_terminal/pos_payment_terminal_view.xml

0
pos_payment_terminal/__init__.py

0
pos_payment_terminal/__openerp__.py

22
pos_payment_terminal/pos_payment_terminal.xml

@ -1,10 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data>
<template id="assets_backend" name="point_of_sale assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/pos_payment_terminal/static/src/js/pos_payment_terminal.js"></script>
</xpath>
</template>
</data>
<data>
<template id="assets_backend" name="point_of_sale assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/pos_payment_terminal/static/src/js/pos_payment_terminal.js"></script>
</xpath>
</template>
<template id="index" name="pos_payment_terminal index" inherit_id="point_of_sale.index">
<xpath expr="//link[@id='pos-stylesheet']" position="after">
<link rel="stylesheet" href="/pos_payment_terminal/static/src/css/pos_payment_terminal.css" id="pos_payment_terminal-stylesheet"/>
</xpath>
</template>
</data>
</openerp> </openerp>

11
pos_payment_terminal/pos_payment_terminal_view.xml

@ -1,8 +1,9 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<openerp> <openerp>
<data> <data>
<record id="view_pos_config_form" model="ir.ui.view"> <record id="view_pos_config_form" model="ir.ui.view">
<field name="name">pos.config.form.view.inherit</field>
<field name="name">pos.payment.terminal.config.form</field>
<field name="model">pos.config</field> <field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.view_pos_config_form"/> <field name="inherit_id" ref="point_of_sale.view_pos_config_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
@ -11,8 +12,9 @@
</field> </field>
</field> </field>
</record> </record>
<record id="view_account_journal_pos_user_form" model="ir.ui.view"> <record id="view_account_journal_pos_user_form" model="ir.ui.view">
<field name="name">POS journal inherit</field>
<field name="name">pos.payment.terminal.journal.form</field>
<field name="model">account.journal</field> <field name="model">account.journal</field>
<field name="inherit_id" ref="point_of_sale.view_account_journal_pos_user_form"/> <field name="inherit_id" ref="point_of_sale.view_account_journal_pos_user_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
@ -22,10 +24,5 @@
</field> </field>
</record> </record>
<template id="index" name="pos_payment_terminal index" inherit_id="point_of_sale.index">
<xpath expr="//link[@id='pos-stylesheet']" position="after">
<link rel="stylesheet" href="/pos_payment_terminal/static/src/css/pos_payment_terminal.css" id="pos_payment_terminal-stylesheet"/>
</xpath>
</template>
</data> </data>
</openerp> </openerp>
Loading…
Cancel
Save