account_invoice.py 430 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. # @authors: Alexander Ezquevo <alexander@acysos.com>
  3. # Copyright (C) 2016 Acysos S.L.
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. from openerp import models, fields
  6. class AccountInvoiceLine(models.Model):
  7. _inherit = 'account.invoice.line'
  8. animal_qty = fields.Integer(string = 'Num of animals')
  9. farm = fields.Many2one(string='Farm', comodel_name='stock.warehouse')