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.

23 lines
712 B

  1. from odoo import fields, models
  2. class SubscriptionRequest(models.Model):
  3. _inherit = "subscription.request"
  4. vat = fields.Char(
  5. string="Tax ID",
  6. help="""
  7. The Tax Identification Number. Complete it if the contact is subjected to
  8. government taxes. Used in some legal statements."
  9. """,
  10. )
  11. voluntary_contribution = fields.Monetary(
  12. string="Voluntary contribution",
  13. currency_field="company_currency_id",
  14. help="Voluntary contribution made by the cooperator while buying a share.",
  15. )
  16. def get_partner_vals(self):
  17. vals = super(SubscriptionRequest, self).get_partner_vals()
  18. vals["vat"] = self.vat
  19. return vals