diff options
| author | David <david.vidal@tecnativa.com> | 2019-04-01 12:33:13 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-04-19 11:40:07 +0000 |
| commit | d3c980e92e5743a5d7c10006c255ac19de3c22b5 (patch) | |
| tree | c366fc87a4f52355d2c58e8afb7180438ab1f486 | |
| parent | f9ce7d1fc8f901efc9db397ec4786d8710aabd53 (diff) | |
[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
closes odoo/odoo#32842
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
| -rw-r--r-- | addons/point_of_sale/data/point_of_sale_data.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/point_of_sale/data/point_of_sale_data.xml b/addons/point_of_sale/data/point_of_sale_data.xml index f2c82edc99a..998299a643d 100644 --- a/addons/point_of_sale/data/point_of_sale_data.xml +++ b/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"/> |
