Skip to content

Commit

Permalink
[IMP]l10n_it_ricevute_bancarie: improvements for is_unsolved field
Browse files Browse the repository at this point in the history
- Changed placement to see the label better
- When a invoice is duplicated the field is set to
  false. This behavior that was not present
  before this commit
  • Loading branch information
toita86 committed Nov 26, 2024
1 parent ce388d4 commit 0117754
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions l10n_it_ricevute_bancarie/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ Contributors

* `Ooops <https://www.ooops404.com>`_:
* Giovanni Serra <[email protected]>
* Eduard Brahas <[email protected]>

Maintainers
~~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions l10n_it_ricevute_bancarie/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def copy(self, default=None):
{"invoice_line_ids": [(2, id, 0) for id in due_cost_line_ids]}
)
invoice._recompute_tax_lines()
invoice.is_unsolved = False
return invoice

def get_due_cost_line_ids(self):
Expand Down
1 change: 1 addition & 0 deletions l10n_it_ricevute_bancarie/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@

* `Ooops <https://www.ooops404.com>`_:
* Giovanni Serra <[email protected]>
* Eduard Brahas <[email protected]>
3 changes: 2 additions & 1 deletion l10n_it_ricevute_bancarie/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<li>Simone Vanin &lt;<a class="reference external" href="mailto:simone.vanin&#64;agilebg.com">simone.vanin&#64;agilebg.com</a>&gt;</li>
<li>Sergio Corato &lt;<a class="reference external" href="https://github.com/sergiocorato">https://github.com/sergiocorato</a>&gt;</li>
<li><a class="reference external" href="https://www.ooops404.com">Ooops</a>:
* Giovanni Serra &lt;<a class="reference external" href="mailto:giovanni&#64;gslab.it">giovanni&#64;gslab.it</a>&gt;</li>
* Giovanni Serra &lt;<a class="reference external" href="mailto:giovanni&#64;gslab.it">giovanni&#64;gslab.it</a>&gt;
* Eduard Brahas &lt;<a class="reference external" href="mailto:eduard&#64;ooops404.com">eduard&#64;ooops404.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
4 changes: 4 additions & 0 deletions l10n_it_ricevute_bancarie/views/account_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@
domain="[('partner_id','=', commercial_partner_id)]"
/>
</div>

</xpath>

<xpath expr="//label[@for='invoice_payment_term_id']" position="before">
<field
name="is_unsolved"
string="Past Due"
Expand Down

0 comments on commit 0117754

Please sign in to comment.