mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-28 01:12:06 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="ir_cron_send_availability_email" model="ir.cron">
|
||||
<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>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" ?>
|
||||
<odoo>
|
||||
<template id="availability_email_body">
|
||||
<div id="body">
|
||||
<p>Dear Customer,</p>
|
||||
<p>The following product is now available.</p>
|
||||
<div style="display: flex; justify-content: center; width: 100%;">
|
||||
<a t-attf-href="#{product.website_url}">
|
||||
<img t-attf-src="/web/image/product.product/#{product.id}/image_1920"/>
|
||||
</a>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: row; align-items: center; justify-content: center; width: 100%;">
|
||||
<p t-esc="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"/>
|
||||
<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;">
|
||||
Order Now
|
||||
</a>
|
||||
</div>
|
||||
<p>Regards,</p>
|
||||
</div>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<record id="stock.product_cable_management_box" model="product.product">
|
||||
<field name="is_published" eval="True"/>
|
||||
</record>
|
||||
<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>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue