openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17202
[Bug 1070812] Re: [6.1] wrong taxes by default when changing account on invoice line
Hello Frédéric,
I have checked your video and configured the same at my end. I have
found that when you do not set expense account on the product form
system automatically sets the account of the products category and the
taxes for the invoice line set on the basis of that account. When you
change the account on the invoice line onchange_account_id() method
called and here it checks for the product, If there is no product then
it it sets the taxes on the basis of the selected account but if there
is product in the line then it calls def product_id_change() method and
set the taxes.
Here system sets Income Or Expense account on the basis of Invoice Type.
In your case Type is Supplier Invoice (in_invoice) then system first
checks the expense account on the product, which is False in your case
then system set the Expense account of its category which is "220000
Expenses". As you have given default tax "OTAX 5" for this account this
is why this tax shown in the taxes field.
It is not a real bug but a configuration issue, to avoid this you can
set expense account on the product OR on product category.
As for now I set the status of this bug as Invalid. If I have missed
something here in that case you can re-open this bug and also the
maintenance issue related to the this.
Thanks
** Changed in: openobject-addons
Status: New => Invalid
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1070812
Title:
[6.1] wrong taxes by default when changing account on invoice line
Status in OpenERP Addons (modules):
Invalid
Bug description:
Hello there,
I notice that the system propose the wrong taxes on my supplier invoice line when I select a product without taxes.
How to reproduce :
I do my test on runbot addons 7042
1 - I take the product ARM100 which has no taxes set up
2 - I create a supplier invoice
3 - I create a invoice line
4 - I select the product ARM100
5 - I change the account to an other one with no taxeand use the tab to trigger the on_change
PROBLEM : I see a tax while neither my product nor my account have any taxes set by default.
Thanks
Frederic Clementi
Camptocamp
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1070812/+subscriptions
References