You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.0 KiB

  1. # Copyright 2015 Antonio Espinosa <antonio.espinosa@tecnativa.com>
  2. # Copyright 2015 Jairo Llopis <jairo.llopis@tecnativa.com>
  3. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
  4. from odoo import fields, models
  5. class ResPartner(models.Model):
  6. _inherit = 'res.partner'
  7. capital_country_id = fields.Many2one(
  8. 'res.country',
  9. "Capital country",
  10. help="Country of origin of this company's capital.")
  11. capital_amount = fields.Monetary(
  12. "Capital amount",
  13. currency_field='capital_currency_id',
  14. help="Publicly registered capital amount.")
  15. capital_currency_id = fields.Many2one(
  16. "res.currency",
  17. string="Capital currency")
  18. turnover_range_id = fields.Many2one(
  19. 'res.partner.turnover_range',
  20. "Turnover range")
  21. turnover_amount = fields.Float()
  22. company_size = fields.Selection(
  23. string="Company size",
  24. selection=[('micro', 'Micro'), ('small', 'Small'),
  25. ('medium', 'Medium'), ('big', 'Big')])