payment_term_configurator.py 631 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. from openerp import api, fields, models
  3. from openerp.exceptions import except_orm
  4. from datetime import datetime, timedelta
  5. from openerp.tools import DEFAULT_SERVER_DATE_FORMAT
  6. from dateutil.relativedelta import relativedelta
  7. class AccountPaymentTerm(models.Model):
  8. _inherit = 'account.payment.term'
  9. config = fields.Boolean(default='False')
  10. type_operation = fields.Selection([('all', 'Todo'),('sale','Venta'),('purchase', 'Compra')],'Tipo de operacion', default='all', help='Define si el plazo de pago puede sera utilizado por Ventas, Compras o Todos')
  11. user_term = fields.Many2one('res.users', 'user')