Skip to content

Commit

Permalink
[FIX] l10n_in_ewaybill_stock: transportation_doc_no field visible for…
Browse files Browse the repository at this point in the history
… `By Road`

Before this commit:
The label for Transporter Doc Number and Date was visible but
the field was seemed to be hidden

After this commit:
We fix the above issue, now the field is visible when
the mode is selected to `By Road`

task-3959862

closes odoo#167690

X-original-commit: 4c0eb89
Signed-off-by: Josse Colpaert <[email protected]>
Signed-off-by: Harsh Modi (hamo) <[email protected]>
  • Loading branch information
hamo-odoo committed Jun 1, 2024
1 parent 1dbfe49 commit 68f50bb
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,26 +92,27 @@
</div>
</group>
<group>
<label for="transportation_doc_no" invisible="mode != '1' or not mode"/>
<label for="transportation_doc_no" invisible="mode != '1'"/>
<label for="transportation_doc_no" invisible="mode != '2'" string="RR No"/>
<label for="transportation_doc_no" invisible="mode != '3'" string="Airway Bill"/>
<label for="transportation_doc_no" invisible="mode != '4'" string="Bill of lading No"/>
<div class="o_row">
<field name="transportation_doc_no"
readonly="state != 'pending'"
required="mode in ('2', '3', '4')"
invisible="mode not in ('2', '3', '4')"/>
invisible="not mode"/>
</div>


<label for="transportation_doc_date" invisible="mode != '1' or not mode"/>
<label for="transportation_doc_date" invisible="mode != '1'"/>
<label for="transportation_doc_date" invisible="mode != '2'" string="RR Date"/>
<label for="transportation_doc_date" invisible="mode != '3'" string="Airway Bill Date"/>
<label for="transportation_doc_date" invisible="mode != '4'" string="Bill of lading Date"/>
<div class="o_row">
<field name="transportation_doc_date"
readonly="state != 'pending'"
required="mode in ('2', '3', '4')" invisible="mode not in ('2', '3', '4')"/>
required="mode in ('2', '3', '4')"
invisible="not mode"/>
</div>
</group>
</group>
Expand Down

0 comments on commit 68f50bb

Please sign in to comment.