Permalink
Browse files
[IMP] sale: Improved the activity view of sale orders by providing cu…
…stom template.
Related to Task: 1894990
- Loading branch information...
Showing
with
26 additions
and
0 deletions.
-
+26
−0
addons/sale/views/sale_views.xml
|
@@ -101,6 +101,32 @@ |
|
|
|
<menuitem action="uom.product_uom_categ_form_action" id="menu_product_uom_categ_form_action" parent="sale.prod_config_main" sequence="8" groups="uom.group_uom" active="False"/> |
|
|
|
<menuitem id="menu_product_pricelist_main" name="Pricelists" parent="product_menu_catalog" action="product.product_pricelist_action2" groups="product.group_sale_pricelist" sequence="3" active="False"/> |
|
|
|
|
|
|
|
<record id="sale_order_view_activity" model="ir.ui.view"> |
|
|
|
<field name="name">sale.order.activity</field> |
|
|
|
<field name="model">sale.order</field> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<activity string="Sales Orders"> |
|
|
|
<field name="partner_id"/> |
|
|
|
<field name="amount_total"/> |
|
|
|
<field name="currency_id"/> |
|
|
|
<templates> |
|
|
|
<t t-name="activity-box"> |
|
|
|
<div class="o_activity_card_content"> |
|
|
|
<div class="o_activity_record_details"> |
|
|
|
<div> |
|
|
|
<strong><t t-esc="record.partner_id.value"/></strong> |
|
|
|
</div> |
|
|
|
<div class="text-muted"> |
|
|
|
<field name="amount_total" widget="monetary"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</templates> |
|
|
|
</activity> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="view_sale_order_calendar" model="ir.ui.view"> |
|
|
|
<field name="name">sale.order.calendar</field> |
|
|
|
<field name="model">sale.order</field> |
|
|
0 comments on commit
b6dd8c2