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 authored and matteonext committed Jan 17, 2025
1 parent 8a0a8d8 commit cbcb47e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_it_riba/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def copy(self, default=None):
invoice._sync_dynamic_lines(
container={"records": invoice, "self": invoice}
)
invoice.is_unsolved = False
return invoice

def get_due_cost_line_ids(self):
Expand Down
3 changes: 3 additions & 0 deletions l10n_it_riba/views/account_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
attrs="{'invisible': ['|',('is_riba_payment','=', False),('move_type','!=','out_invoice')], 'required': ['&',('is_riba_payment','=', True),('move_type','=', 'out_invoice')]}"
domain="[('partner_id','=', commercial_partner_id)]"
/>
</xpath>

<xpath expr="//label[@for='invoice_payment_term_id']" position="before">
<field
name="riba_supplier_company_bank_id"
attrs="{
Expand Down

0 comments on commit cbcb47e

Please sign in to comment.