Skip to content

Commit

Permalink
Merge PR #107 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by carmenbianca
  • Loading branch information
OCA-git-bot committed Jan 30, 2024
2 parents 41cd001 + 14a8831 commit d149988
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cooperator/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ class ProductTemplate(models.Model):
force_min_qty = fields.Boolean(string="Force minimum quantity?")
by_company = fields.Boolean(string="Can be subscribed by companies?")
by_individual = fields.Boolean(string="Can be subscribed by individuals?")
mail_template = fields.Many2one("mail.template", string="Mail template")
mail_template = fields.Many2one(
comodel_name="mail.template",
string="Certificate email template",
domain=[("model", "=", "res.partner"), ("is_cooperator_template", "=", True)],
help="If left empty, the default global mail template will be used.",
)

def get_web_share_products(self, is_company):
if is_company is True:
Expand Down

0 comments on commit d149988

Please sign in to comment.