Hi All,
I have created two boolean fields in stock.picking model.
is_incharge_sign = fields.Boolean(default=False)
is_accountant_sign = fields.Boolean(default=False)
using these fields to show the signature modal in a web form
<div class="mb-4">
<t t-if="not picking.dispatch_signature and picking.is_incharge_sign">
<h4>Dispatch In-Charge</h4>
<a class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal_dispatch">
Accept & Sign
</a></t>
</div>
<div class="mb-4">
<t t-if="not picking.accountant_signature and picking.is_accountant_sign">
<h4>Accountant</h4>
<a role="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modal_accountant">
Accept & Sign
</a>
</t>
</div>
now I want to give some validation to the web form and I need the boolean value in js.
How can I get the boolean values in the js that has been stored in the model?