[FIX] l10n_fr_pos_cert: display hash in debug mode

We now display the pos order hash, on the order form view when we are in
debug mode.

TASK-ID: 47990
This commit is contained in:
Pierre Masereel
2019-10-01 10:02:50 +00:00
parent 9e5ea29e34
commit 00a30e1d07
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@ The module adds following features:
'views/pos_inalterability_menuitem.xml',
'views/account_views.xml',
'views/l10n_fr_pos_cert_templates.xml',
'views/pos_views.xml',
],
'qweb': ['static/src/xml/pos.xml'],
'post_init_hook': '_setup_inalterability',
@@ -0,0 +1,12 @@
<odoo>
<record id="pos_order_form_inherit" model="ir.ui.view">
<field name="name">pos.order.form.inherit</field>
<field name="model">pos.order</field>
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='pos_reference']" position='after'>
<field string='Hash' name="l10n_fr_hash" groups="base.group_no_one"/>
</xpath>
</field>
</record>
</odoo>