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
710 B

from odoo import fields, models
class SubscriptionRequest(models.Model):
_inherit = 'subscription.request'
vat = fields.Char(
string='Tax ID',
help="""
The Tax Identification Number. Complete it if the contact is subjected to
government taxes. Used in some legal statements."
"""
)
voluntary_contribution = fields.Monetary(
string='Voluntary contribution',
currency_field="company_currency_id",
help="Voluntary contribution made by the cooperator while buying a share."
)
def get_partner_vals(self):
vals = super(SubscriptionRequest, self).get_partner_vals()
vals['vat'] = self.vat
return vals