◄ ► | Edit | Home | Admin | en de fr et | Sign in

#3492 (Move Voucher.state to MTI children)

by Luc Saffre · in Developers · assigned to Luc Saffre

Summary

Children

Comments

  • 6 years, 8 months ago by Luc Saffre about #3492 (Move Voucher.state to MTI children) : todo: doctest docs/specs/ledger.rst is failing because the sorting order of ledger.Debtors has changed.
  • 6 years, 8 months ago by Luc Saffre about #3492 (Move Voucher.state to MTI children) : The problem was with the get_wanted_movements() and get_partner() methods. They have a default implentation on Voucher, but because the mixin MRO has changed these default implemntationwere used instead of their implmentations in Payable or FinancialVoucher. I now "fixed" it by not giving any defaul...
  • 6 years, 8 months ago by Luc Saffre about #3492 (Move Voucher.state to MTI children) : Almost done after my local changes, but something is still failing when generating demo data. Seems that register() doesn't set the state always correctly...
  • 6 years, 8 months ago by Luc Saffre about #3492 (Move Voucher.state to MTI children) : The state field of a voucher currently has one choicelist (ledger.VoucherStates) for all voucher types: sales invoices, purchase invoices, bank statements, vat declarations and all types of orders. That's actually a design flaw because the workflow of vouchers can potentially vary.