Commit 5786bd3
committed
[FIX] point_of_sale: prevent the new session sequencing with prefix to start with the config name
Description of the issue/feature this PR addresses:
The sequencing for new PoS Session isn't right when set to another value than the default.
Current behavior before PR:
The PoS name was added before the intended sequence.
For example, if you set the pos.session sequence to TEST/ with the Furniture Shop, it return Furniture ShopTEST/00001.
Desired behavior after PR is merged:
The PoS Session name should be using only the sequence if the sequence isn't the default one.
When the pos.session sequence is set to TEST/ and you open the Furniture Shop, it should return TEST/00001.
Steps to reproduce:
- change the default sequence prefix for pos.session
- open a pos session and Open Register
- go to Point of Sale > Orders > Sessions
- check the Session ID
opw-4822673
closes odoo#212775
Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>1 parent cdad436 commit 5786bd3
2 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1746 | 1746 | | |
1747 | 1747 | | |
1748 | 1748 | | |
1749 | | - | |
| 1749 | + | |
| 1750 | + | |
1750 | 1751 | | |
1751 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1752 | 1755 | | |
1753 | 1756 | | |
1754 | 1757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
892 | 910 | | |
893 | 911 | | |
894 | 912 | | |
| |||
0 commit comments