Skip to content

Commit

Permalink
Fixed protocol print
Browse files Browse the repository at this point in the history
  • Loading branch information
rosenvladimirov committed May 7, 2024
1 parent 2fe63b1 commit 2db5bb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions l10n_bg_tax_admin/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ def _onchange_l10n_bg_customs_invoice_ids(self):
continue
map_id = invoice_id.fiscal_position_id.map_type(invoice_id)
self.invoice_line_ids = self.l10n_bg_customs_id._customs_aml(invoice_id, self, map_id)
for line in self.invoice_line_ids:
if line.l10n_bg_customs_invoice_id.id not in self.l10n_bg_customs_invoice_ids.ids:
line.unlink()

# -------------------------------------------------------------------------
# HELPER METHODS
Expand Down
2 changes: 1 addition & 1 deletion l10n_bg_tax_admin/views/report_protocol.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

<div id="informations" class="row mt-4 mb-4">
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_date" name="invoice_date">
<t t-else=""><strong>Date:</strong></t>
<strong>Date:</strong>
<p class="m-0" t-field="o.protocol_date"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="o.invoice_origin" name="origin">
Expand Down

0 comments on commit 2db5bb1

Please sign in to comment.