Skip to content
Permalink
Browse files

[FIX] point_of_sale: put PoS picking sequence in noupdate

The default PoS picking sequence should not be reset.
Losing custom configuration can lead to errors.

For instance:
- A customer initially uses the default sequence until POS09999
- he changes it to another one of his own taste starting the
  sequence over, like: WH/POS/00001
- In a module update, the sequence is reset and then we get the POS
  prefix again.
- In the next picking, we could have a duplicated name, and an error
  would raise in the Point of Sale.

opw 1962302
closes #32299
  • Loading branch information...
chienandalu authored and len-odoo committed Apr 1, 2019
1 parent 2d30bd9 commit d6eb9bf997111d943dc0dd8c5ff890b3f4bd6fcd
Showing with 3 additions and 2 deletions.
  1. +3 −2 addons/point_of_sale/data/point_of_sale_data.xml
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
<data noupdate="1">
<record id="seq_picking_type_posout" model="ir.sequence">
<field name="name">Picking POS</field>
<field name="prefix">POS</field>
<field name="padding">5</field>
<field name="company_id" eval="False"/>
</record>

</data>
<data noupdate="0">
<record id="picking_type_posout" model="stock.picking.type">
<field name="name">PoS Orders</field>
<field name="sequence_id" ref="seq_picking_type_posout"/>

0 comments on commit d6eb9bf

Please sign in to comment.
You can’t perform that action at this time.