I need to display the first set of code for the draft, sent and a negotiation phase of the Quotation/Sales Order view. Once the Quotation is Confirmed I want to show the second set of states in the statusbar. I have found through research that having the two identical field names is why one of them does not show status. Is there a way that I can combine the two lines of code below into a single one or is there a way to make a state invisible on the status bar based on the current state of the view?
<field name="state" widget="statusbar" states="draft,sent,negotiation" statusbar_visible="draft,sent,negotiation,progress" statusbar_colors="{"draft":"red","sent":"blue"}"/> <field name="Status" widget="statusbar" states="progress,released,shipped,manual,done" statusbar_visible="progress,released,shipped,manual,done" statusbar_colors="{"invoice_except":"red","waiting_date":"blue"}"/>