model.py 476 B

123456789101112
  1. # -*- coding: utf-8 -*-
  2. from openerp import models, fields, api
  3. class StockLocation(models.Model):
  4. _inherit = 'stock.location'
  5. account_analytic_account_id = fields.Many2one('account.analytic.account', 'Contrato', domain="[('state','in',['open','pending'])]")
  6. class AccountInvoice(models.Model):
  7. _inherit = 'account.invoice'
  8. account_analytic_account_id = fields.Many2one('account.analytic.account', 'Contrato', domain="[('state','in',['open','pending'])]")