|  | 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')
 |