tryton-ar / account_invoice_ar

Tryton module with AFIP WS integration
GNU General Public License v3.0
14 stars 13 forks source link

fied Tipo comprobante needs to be restricted by domain if is credit note #113

Closed lukio closed 6 years ago

lukio commented 6 years ago

Since v4.0 the invoice record is a credit note if the invoice is < 0. If the user is gonna create a credit note, we need to add a restriction to the field Tipo comprobante so the user must select tipo de comprobante of credit not if total_amount is < 0 or tipos de comprobante (factura A, factura B, factura, etc) if total_amount is >=0.