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

I am in the process of adding a new column labeled "Mark Up" to the invoice line. The markup value is intended to be calculated using the quantity and price, subsequently updating the subtotal. However, I am encountering an issue where the markup value is not being reflected in the total. I would appreciate your assistance in resolving this matter.


Avatar
Abbandona
Autore

Thank You !It is working now

Risposta migliore

Hi! 👋,

To add a new "Mark Up" column in invoice lines and include its value in subtotal and total, you'll need to:

  1. Add a custom field (e.g., markup_amount) to account.move.line.
  2. Override _compute_amount in the same model to include this field in subtotal calculation.
  3. Update views to show the new column on the invoice form and tree.
  4. Adjust reports if needed to reflect the updated totals.

This requires a custom module with Python and XML changes.

Avatar
Abbandona