← Back to team overview

openerp-india team mailing list archive

[Bug 1281687] [NEW] mrp_repair: missing invalidation on fees

 

Public bug reported:

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.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

** Patch added: "This patch fixes the bug"
   https://bugs.launchpad.net/bugs/1281687/+attachment/3985540/+files/70-fix-mrp-repair-invalidation.diff

-- 
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 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/openobject-addons/+bug/1281687/+subscriptions


Follow ups

References