openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27304
[Bug 1281687] Re: mrp_repair: missing invalidation on fees
** Also affects: ocb-addons
Importance: Undecided
Status: New
** Also affects: ocb-addons/7.0
Importance: Undecided
Status: New
--
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/1281687
Title:
mrp_repair: missing invalidation on fees
Status in OpenERP Community Backports (Addons):
New
Status in OpenERP Community Backports (Addons) 7.0 series:
New
Status in OpenERP Addons (modules):
New
Bug description:
Here is the scenario to reproduce the bug :
1) connect to runbot (v7 or trunk)
2) Go to "Manufacturing > repair orders" and edit "RMA00004" (present
in demo data ; should be in "Quotation state"). The total amount is
100.
3) In the invoicing tab, add a new fee line :
Product : Assembly Service Cost
Quantity : 1
Price : 12
To invoice : should be set to "yes" by default
In the "Operations" tab, the total amount is still 100 ; it should be
112 !
The cause of the bug is pretty obvious : the fields "amount_untaxed",
"amount_tax" and "amount_total" are STORED function fields, but the
invalidation function on mrp.repair.fee is missing !
The attached patch fixes the issue : it adds the missing invalidation
function on the fields "amount_untaxed", "amount_tax" and
"amount_total" and it also simplify the invalidation function of
mrp.repair.line.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1281687/+subscriptions
References