Module
Module affected by this bug is l10n_it_split_payment
Describe the bug
Actually, when an invoice for PA is created from sale order, on save / confirm the tax line and its account refund line are duplicated. The case can be seen on runboat at http://oca-l10n-italy-14-0-f2dde4bc85c0.runboat.odoo-community.org/web?#id=20&action=227&model=account.move&view_type=form&cids=&menu_id=134
To Reproduce
Affected versions:
Steps to reproduce the behavior:
- Install l10n_it module if not installed
- Configure a tax for split payment,
- create new tax
- as invoice and refund line set 100,0% of base amount with account 260100
- In advanced option tab st Tax payment to split payment
- As VAT liquidation account the same account set on tax repartition lines
- Set a label and the tax value
- Create fiscal position for split payment
- Create new fiscal position
- In tax mapping set 22% for sale mapped to 22% split payment for sales
- Check the flag for split payment
- Select a product, and set 22% sale ad customer tax
- Create an SO, adding product previously configured, set Italian fiscal position in other info tab, confirm it
- Create an invoice
- Edit it, changing fiscal position to split payment fiscal position
- check Journal Items tab
Expected behavior
When invoice fiscal position is set to split payment, in journal items tab must be only one tax line for tacx amount and only one account refund tax for the tax line
Module
Module affected by this bug is l10n_it_split_payment
Describe the bug
Actually, when an invoice for PA is created from sale order, on save / confirm the tax line and its account refund line are duplicated. The case can be seen on runboat at http://oca-l10n-italy-14-0-f2dde4bc85c0.runboat.odoo-community.org/web?#id=20&action=227&model=account.move&view_type=form&cids=&menu_id=134
To Reproduce
Affected versions:
Steps to reproduce the behavior:
Expected behavior
When invoice fiscal position is set to split payment, in journal items tab must be only one tax line for tacx amount and only one account refund tax for the tax line