Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5274 Visualizzazioni

Version: Openerp 7 As per my client requirement I need additional field in invoice line like discount. It will be postage cost. Let say product price is $50, discount is $10 and Postage Cost is $5 then amount for that product should be $45. Means postage cost field value is going to be used in calculation.

Avatar
Abbandona
Risposta migliore

The way to use OpenERP for this need is to add a line in your sale order that summarize the postage cost for all products. You can install the "delivery" module so that OpenERP will even be able to compute the cost for you automatically based on delivery grids.

Example for a sale order with two products:

Product X      3 items     $50
Product Y      2 items     $20
Postage cost                $5

Total                      $75

If you want to do the way you proposed, you will have to develop a specific module. If you do that, I would not suggest to change the logic of the current fields, but rather add new fields that fills in the current fields using on_change methods.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mar 15
3998
0
mar 15
3846
4
mar 15
6992
1
mar 15
4413
0
mar 15
3477