[FIX] base: gantt rng option duration_unit

Before this commit, the duration_unit view attribute was not present in the gantt RNG
But the JS code in the framework and in Studio allow for modifying it

So, this commit makes it an optional view attribute

OPW 1946216

closes odoo/odoo#32133

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
This commit is contained in:
Lucas Perais (lpe)
2019-03-27 10:19:02 +00:00
parent 7f41a4fd56
commit c8095eb81b
+2
View File
@@ -25,6 +25,8 @@
<rng:optional><rng:attribute name="consolidation"/></rng:optional>
<rng:optional><rng:attribute name="consolidation_max"/></rng:optional>
<rng:optional><rng:attribute name="consolidation_exclude"/></rng:optional>
<!-- Shouldn't be forward ported to >= saas-12.2 -->
<rng:optional><rng:attribute name="duration_unit"/></rng:optional>
<rng:empty/>
</rng:element>
</rng:define>