[IMP] sale,stock: adapt schedule activity new type

Now, the style of exception activity depends on
the activity subtype, since a global warning type
exists.
This commit is contained in:
jem-odoo
2018-08-10 16:30:20 +02:00
parent ed987b73af
commit 8cdc95a331
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<odoo>
<template id="exception_on_po">
<div class="alert alert-warning" role="alert">
<div>
Exception(s) occurred on the purchase order(s):
<t t-foreach="purchase_order_ids" t-as="purchase_order">
<a href="#" data-oe-model="purchase.order" t-att-data-oe-id="purchase_order.id"><t t-esc="purchase_order.name"/></a>.
+2 -2
View File
@@ -8,7 +8,7 @@
</template>
<template id="exception_on_so">
<div class="alert alert-warning" role="alert">
<div>
Exception(s) occurred on the sale order(s):
<t t-foreach="sale_order_ids" t-as="sale_order">
<a href="#" data-oe-model="sale.order" t-att-data-oe-id="sale_order.id"><t t-esc="sale_order.name"/></a>.
@@ -42,7 +42,7 @@
</template>
<template id="exception_on_picking">
<div class="alert alert-warning" role="alert">
<div>
Exception(s) occurred on the picking:
<a href="#" data-oe-model="stock.picking" t-att-data-oe-id="origin_picking.id"><t t-esc="origin_picking.name"/></a>.
Manual actions may be needed.
+1 -1
View File
@@ -923,7 +923,7 @@ class Picking(models.Model):
note = render_method(rendering_context)
self.env['mail.activity'].create({
'activity_type_id': self.env.ref('mail.mail_activity_data_todo').id,
'activity_type_id': self.env.ref('mail.mail_activity_data_warning').id,
'note': note,
'user_id': responsible.id,
'res_id': parent.id,
+1 -1
View File
@@ -102,7 +102,7 @@
</template>
<template id="exception_on_picking">
<div class="alert alert-warning" role="alert"> Exception(s) occurred on the picking
<div> Exception(s) occurred on the picking
<a href="#" data-oe-model="stock.picking" t-att-data-oe-id="origin_picking.id"><t t-esc="origin_picking.name"/></a>.
Manual actions may be needed.
<div class="mt16">