[IMP] sale: avoid replace when not in sale_layout group

Last recommendation in order to avoid breaking invoice
customizations for people who doesn't use sale_layout.
This commit is contained in:
David Monjoie
2016-03-25 11:54:05 +01:00
parent 3bb9b09500
commit 3ce72701f1
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_invoice_layouted" inherit_id="account.report_invoice_document">
<template id="report_invoice_layouted" inherit_id="account.report_invoice_document" groups="sale.group_sale_layout">
<xpath expr="//table" position="replace">
<t t-foreach="o.order_lines_layouted()" t-as="page">
<table class="table table-condensed">