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.
 
 

16 lines
543 B

from odoo import fields, models
class DonationThanksTemplate(models.Model):
_inherit = "donation.thanks.template"
html_content=fields.Html('Html content')
type_id=fields.Many2one('opendons.type_donation_thanks_template', required=True)
product_id=fields.Many2one('product.product',domain="[('donation','=',True)]")
class opendons_type_donation_thanks_template(models.Model):
_name = 'opendons.type_donation_thanks_template'
_description = 'manage type donation thanks emplate'
name=fields.Char('name')