Account Fiscal Position declared 2 times leads to duplicate key value in sale order lines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
Hello,
Steps to reproduce (on runbot trunk and 6.1):
- Install modules 'account', 'sale'
- Install the generic chart of account
- Create a new fiscal position A
- Create a line with :
source: Tax 15.00%
destination: Purchase Tax 15.00%
- Create a second line with exact same taxes
source: Tax 15.00%
destination: Purchase Tax 15.00%
- Edit the product Ice cream
- Set the Customer tax to: Tax 15.00%
- Create a sale order
- Change the fiscal position to fiscal position A
- Select the product Ice Cream (you'll notice that you have to times the same taxes)
- Save the sale order
Result:
Integrity Error
duplicate key value violates unique constraint "sale_order_
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 51 lines (+16/-4)1 file modifiedaccount/partner.py (+16/-4)
- OpenERP Core Team: Pending requested
-
Diff: 51 lines (+16/-4)1 file modifiedaccount/partner.py (+16/-4)
I just pushed 2 branches with corrections for 6.1 and trunk and proposed them for a merge.