mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 23:52:04 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -4,8 +4,6 @@
|
|||
<field name="name">Product: send email regarding products availability</field>
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">hours</field>
|
||||
<field name="numbercall">-1</field>
|
||||
<field name="doall" eval="False"/>
|
||||
<field name="model_id" ref="model_product_product"/>
|
||||
<field name="code">model._send_availability_email()</field>
|
||||
<field name="state">code</field>
|
||||
|
|
|
|||
|
|
@ -10,19 +10,17 @@
|
|||
</a>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: row; align-items: center; justify-content: center; width: 100%;">
|
||||
<p t-esc="product.name"/>
|
||||
<p t-out="product.name"/>
|
||||
<p t-if="product.product_template_attribute_value_ids"
|
||||
style="margin-left: 0.5em;">
|
||||
(<t
|
||||
t-out="', '.join(product.product_template_attribute_value_ids.mapped('name'))"
|
||||
/>)
|
||||
</p>
|
||||
<p style="margin-left: 0.5em; margin-right: 0.5em">-</p>
|
||||
<p t-esc="product.list_price" t-options="{'widget': 'monetary', 'display_currency': product.currency_id}"/>
|
||||
</div>
|
||||
<p t-esc="product.description_sale"/>
|
||||
<p t-out="product.description_sale"/>
|
||||
<div style="display: flex; justify-content: center; width: 100%;">
|
||||
<a t-attf-href="#{product.website_url}" style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
|
||||
<a t-attf-href="#{product.website_url}" t-attf-style="background-color: {{product.website_id.get_current_website().company_id.email_secondary_color or '#875A7B'}}; padding: 8px 16px 8px 16px; text-decoration: none; color: {{product.website_id.get_current_website().company_id.email_primary_color or '#FFFFFF'}}; border-radius: 5px; font-size:13px;">
|
||||
Order Now
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -6,4 +6,7 @@
|
|||
<record id="stock.product_cable_management_box_product_template" model="product.template">
|
||||
<field name="public_categ_ids" eval="[(6,0,[ref('website_sale.public_category_boxes')])]"/>
|
||||
</record>
|
||||
<record id="website_sale.out_of_stock_ribbon" model="product.ribbon">
|
||||
<field name="assign">out_of_stock</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue