Any way for me, it will be a bad design message to put party in the compute method of payment term because it is the payment term that is linked to party and not the other way. So if you want to have this, you should go with context. It is doable right now but I must say we could have a better design for it like we have for price list or tax rule. So a patch that will add a method to return the context for calling payment term compute method on invoice, will be welcome.
-- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpusqh97flql.pgp
Description: PGP signature
