Skip to content

Credit Wizard Line Documentation

Overview

The Credit Wizard Line model (account.credit.wizard.line) represents individual credit entries in the invoice credit allocation wizard. Each line corresponds to an available credit (credit note, prepayment, or overpayment) that can be applied to the invoice.


Model Information

Model Name: account.credit.wizard.line Display Name: Credit Wizard Line Transient: Yes Key Fields: None (transient model)

Features

  • ✅ Transient model (temporary data)
  • ❌ Audit logging enabled (_audit_log)
  • ✅ Cascade delete with parent wizard

Key Fields Reference

All Fields

Field Type Required Readonly Description
wiz_id Many2One Parent wizard
move_line_id Many2One Credit move line
move_id Many2One Credit journal entry
date Date Entry date
account_id Many2One Account
amount_credit_remain Decimal Outstanding credit
amount Decimal Amount to apply

Model Relationship Description
account.credit.wizard Many2One (wiz_id) Parent wizard
account.move.line Many2One Credit move line
account.move Many2One Credit journal entry
account.account Many2One Account

Usage Notes

  • Lines are auto-populated by parent wizard's default_get
  • amount_credit_remain shows available credit balance
  • User enters amount to apply (≤ amount_credit_remain)
  • Lines with amount = 0 are skipped during allocation

Version History

Last Updated: December 2024 Model Version: credit_wizard_line.py Framework: Netforce


This documentation is generated for developer onboarding and reference purposes.