mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
@@ -19,6 +19,10 @@ class RmaTag(models.Model):
|
|||||||
translate=True,
|
translate=True,
|
||||||
copy=False,
|
copy=False,
|
||||||
)
|
)
|
||||||
|
is_public = fields.Boolean(
|
||||||
|
string="Public Tag",
|
||||||
|
help="The tag is visible in the portal view",
|
||||||
|
)
|
||||||
color = fields.Integer(string="Color Index")
|
color = fields.Integer(string="Color Index")
|
||||||
rma_ids = fields.Many2many(comodel_name="rma")
|
rma_ids = fields.Many2many(comodel_name="rma")
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,12 @@
|
|||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="float-right">
|
<span class="float-right">
|
||||||
|
<!-- Tags -->
|
||||||
|
<t t-set="tags" t-value="rma.tag_ids.filtered('is_public')" />
|
||||||
|
<!-- We don't have the color o_tag_color_# classes available in the frontend -->
|
||||||
|
<t t-foreach="tags" t-as="tag">
|
||||||
|
<span class="badge badge-pill badge-info label-text-align" t-esc="tag.name" />
|
||||||
|
</t>
|
||||||
<t t-if="rma.state in ['refunded', 'returned', 'replaced']">
|
<t t-if="rma.state in ['refunded', 'returned', 'replaced']">
|
||||||
<span class="small text-success orders_label_text_align"><i class="fa fa-fw fa-check"/> <b><span t-field="rma.state"/></b></span>
|
<span class="small text-success orders_label_text_align"><i class="fa fa-fw fa-check"/> <b><span t-field="rma.state"/></b></span>
|
||||||
</t>
|
</t>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<group>
|
<group>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
|
<field name="is_public"/>
|
||||||
</group>
|
</group>
|
||||||
</sheet>
|
</sheet>
|
||||||
</form>
|
</form>
|
||||||
@@ -34,6 +35,7 @@
|
|||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="RMA Tags">
|
<tree string="RMA Tags">
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
|
<field name="is_public"/>
|
||||||
<field name="active"/>
|
<field name="active"/>
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
|
|||||||
Reference in New Issue
Block a user