I am using odoo v11. I am working in POS module. In that I created button name "Check Number" in payment screen which is only visible if once selected any payment method which's journal type is "bank". On clicking of that button one popup is getting open. In that popup there is an input field where user enter check number as a input text and click on "Confirm" button and popup is closed.
I want to do that first check weather button has some value or not. If button contains no value then button name remain as it is and if user entered number in that input field then button value is chaged and now it is that entered value.
Now as I said on cliking on "Check No" this popup is open and I want whatever value enter in input field "Check Number" is shown on button value insted of "Check No"