Comment 15 for bug 724525

Revision history for this message
Graeme Gellatly (gdgellatly) wrote :

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.