[ADD] document_page from odoo/7.0

This commit is contained in:
Maxime Chambreuil
2014-09-30 15:38:12 -04:00
committed by Dũng (Trần Đình)
parent 767259fa73
commit 1561edddb8
99 changed files with 21291 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
% if editable and not inline:
<textarea rows="10" id="${name}" name="${name}" class="${css_class}"
${py.attrs(attrs, kind=kind)} style="width: 99%;">${value}</textarea>
<script type="text/javascript">
if (!window.browser.isWebKit) {
new openerp.ui.TextArea('${name}');
}
</script>
% endif
% if editable and inline:
<input type="text" id="${name}" name="${name}" class="${css_class}"
${py.attrs(attrs, kind=kind, value=value)}/>
% endif
% if editable and error:
<span class="fielderror">${error}</span>
% endif
% if not editable and value:
<div kind="${kind}" id="${name}" class="${css_class}">${data|n}</div>
% endif