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.

36 lines
1.1 KiB

  1. # Copyright 2015 Tecnativa - Antonio Espinosa
  2. # Copyright 2015 Tecnativa - Jairo Llopis
  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. comodel_name="res.country",
  9. string="Capital country",
  10. help="Country of origin of this company's capital.",
  11. )
  12. capital_amount = fields.Monetary(
  13. string="Capital amount",
  14. currency_field="capital_currency_id",
  15. help="Publicly registered capital amount.",
  16. )
  17. capital_currency_id = fields.Many2one(
  18. comodel_name="res.currency", string="Capital currency"
  19. )
  20. turnover_range_id = fields.Many2one(
  21. comodel_name="res.partner.turnover_range", string="Turnover range"
  22. )
  23. turnover_amount = fields.Float()
  24. company_size = fields.Selection(
  25. string="Company size",
  26. selection=[
  27. ("micro", "Micro"),
  28. ("small", "Small"),
  29. ("medium", "Medium"),
  30. ("big", "Big"),
  31. ],
  32. )