-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
86 additions
and
54 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
setup/tg_website_sale_affiliate/odoo/addons/tg_website_sale_affiliate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../tg_website_sale_affiliate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"version": "14.0.0.1.0", | ||
"author": "IT-Projects LLC, Eugene Molotov", | ||
"support": "[email protected]", | ||
"website": "https://www.it-projects.info", | ||
"website": "https://github.com/it-projects-llc/tg-addons", | ||
"license": "LGPL-3", | ||
"depends": [ | ||
"website_sale_affiliate", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="send_invitation_mail_template" model="mail.template"> | ||
<field name="name">Affiliate: send invitation</field> | ||
<field name="model_id" ref="website_sale_affiliate.model_sale_affiliate" /> | ||
<field name="subject">Affiliate Invitation</field> | ||
<field name="email_from">"${object.company_id.name | safe}" <${(object.company_id.email or user.email) | safe}></field> | ||
<field name="email_to">${object.partner_id.email_formatted | safe}</field> | ||
<field name="lang">${object.partner_id.lang}</field> | ||
<field name="body_html" type="html"> | ||
<p>Hello, ${object.name}! You affiliate link: <a href="${object.referal_link}">${object.referal_link}</a></p> | ||
</field> | ||
</record> | ||
</data> | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="send_invitation_mail_template" model="mail.template"> | ||
<field name="name">Affiliate: send invitation</field> | ||
<field name="model_id" ref="website_sale_affiliate.model_sale_affiliate" /> | ||
<field name="subject">Affiliate Invitation</field> | ||
<field | ||
name="email_from" | ||
>"${object.company_id.name | safe}" <${(object.company_id.email or user.email) | safe}></field> | ||
<field name="email_to">${object.partner_id.email_formatted | safe}</field> | ||
<field name="lang">${object.partner_id.lang}</field> | ||
<field name="body_html" type="html"> | ||
<p>Hello, ${object.name}! You affiliate link: <a | ||
href="${object.referal_link}" | ||
>${object.referal_link}</a></p> | ||
</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from odoo import api, fields, models | ||
from odoo import models | ||
|
||
|
||
class SaleOrder(models.Model): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters