I want to add a new button in the pos screen interface named waiter so I definded a class named waiter with it's views and when I try to add that button using this code in the pos.xml file it dosn't work so what to do any help would be greatful:
<button t-attf-class='button set-waiter #{ ( widget.pos.waiter.name and widget.pos.waiter.name.length > 10) ? "decentered" : "" }' >
<i class='fa fa-waiter' />
<t t-if="widget.pos.waiter">
<t t-esc="widget.pos.waiter.name" />
</t>
<t t-if="!widget.pos.waiter">
Waiter
</t>
</button>
and here is the class:
class waiter(osv.osv) :
_name = "pos.waiter"
_description = "Waiter"
_columns = {
'name': fields.char('Nom serveur', required=True, translate=True),
'adrs': fields.char('Address'),
'tel': fields.integer('Téléphone'),
}
waiter()