# Customizable defaults on payment terms

**URL:** https://discuss.tryton.org/t/customizable-defaults-on-payment-terms/656
**Category:** Feature
**Tags:** accounting
**Created:** [August 16, 2018, 11:51am UTC](https://discuss.tryton.org/t/customizable-defaults-on-payment-terms/656 "2018-08-16T11:51:41Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![albert](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/albert/32/21_2.png) [@albert](https://discuss.tryton.org/u/albert)
#### Post date: [August 16, 2018, 11:51am UTC](https://discuss.tryton.org/t/customizable-defaults-on-payment-terms/656/1 "2018-08-16T11:51:41Z")

</div>

## Rational

Currently tryton allows users to define the default payment term for invoices (or purchases or sales) at the party form.

That default value used to be a couple of fields of type Property but in latest versions that was converted to MultiValue fields.

The information of the party’s customer\_payment\_term and supplier\_payment\_term fields is stored in account.invoice.payment\_term and the model has the fields:

- party
- company
- customer\_payment\_term
- supplier\_payment term

The thing is that we’d like to be able to customize the way the payment term is choosen based on some other criteria (a “type” field on invoices, for example -could also be the journal), but which would only apply to customer invoices.

## Proposal

The idea would be to change account.invoice.payment\_term so that it only has the following fields:

- party
- company
- kind
- payment\_term

Kind could be a selection with the following options:

- Empty (affects both customer and supplier invoices)
- Customer Invoice
- Customer Credit Note
- Supplier Invoice
- Supplier Credit Note

To clarify, in our experience usually the company wants Customer Credit Notes to have a different payment term than the invoice.

This design would allow us to add a new field (invoice\_type, or journal) to be applied to lines of kind “Customer Invoice” and thus provide defaults in other circumstances.

Opinions?

---

_[View the full topic](https://discuss.tryton.org/t/customizable-defaults-on-payment-terms/656)._
