← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 724525] Re: Purchase Orders created from Sales Orders do not honour the Analytic Account or product description

 

Additionally purchase order description has dependencies on supplier
description and product purchase description.  You cannot break this
just to copy a sale order line description that may or may not have been
edited.  What if 2 suppliers sell the same product but have different
names for it (e.g. Panadol, Paracetemol or Nurofen, Ibuprofen)

Also I don't see why you would necessarily require the analytic account
on the PO.  Provided it is carried to invoice then the associated costs
are carried as well, just check the journal entries for an invoice.

This is more a specific individual requirement than a bug IMO, that is
that sale order line description is used in purchase order (I would add
if the order line / product is MTO as Rucha points out, you might
already have stock).  You (or your lead developer) just needs to create
a custom module that extends, overwrites or modifies make_po of
purchase.py/procurement_order as you see fit.  You can reach the sale
order line description from procurement so personally all I'd do is call
super then make a a write call after it returns to update.

You could do the same for your analytic account requirement.  This is
maybe 5-10 lines of real code total to do both.

Of course if you manufactured the business cards then you'd need to
change make_mo.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/724525

Title:
  Purchase Orders created from Sales Orders do not honour the Analytic
  Account or product description

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  If a sales order gets confirmed and it creates automatically a
  purchase order then neither the analytic account of the sales order
  nor the overwritten names of products are transfered to this newly
  created purchase order.

  For the automatically created custommer invoice everything works
  perfectly: Analytic account and all data from the product_lines are
  transfered correctly!



References