In the Colombian legal requirementqs for point_of_sale, a number should be printed on the receipt, this number sequence must have no gap and no duplicates. As there is already a no gap 'ir.sequence' on each config, we allow the edition of this sequence, and set set same ir.sequence on all pos config, with their DIAN number as prefix. closes odoo/odoo#46546 Task-id: 2169664 X-original-commit: 4ba07bb5a503b5d7dc1ad07cc05adac6309ab8c4 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
19 lines
692 B
XML
19 lines
692 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="pos_config_view_form" model="ir.ui.view">
|
|
<field name="name">pos.config.form.view.inherit.l10n_co_pos</field>
|
|
<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="//div[@id='order_reference']" position="attributes">
|
|
<attribute name="groups"></attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='sequence_id']" position="attributes">
|
|
<attribute name="readonly">0</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|