Skip to content

Commit

Permalink
[MIG] account_invoice_select_for_payment: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimkhoi3010 committed Dec 23, 2024
1 parent 3fad600 commit bf2ea68
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions account_invoice_select_for_payment/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Contributors

- Alexandre Fayolle <[email protected]>
- Hiep Nguyen Hoang <[email protected]>
- Khoi (Kien Kim) <[email protected]>

Other credits
-------------
Expand All @@ -88,6 +89,11 @@ The development of this module has been financially supported by:

- Camptocamp

The migration of this module from 14.0 to 18.0 was financially supported
by:

- Camptocamp

Maintainers
-----------

Expand Down
2 changes: 1 addition & 1 deletion account_invoice_select_for_payment/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Account Invoice Select for Payment",
"version": "14.0.1.1.0",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "Camptocamp,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/bank-payment",
Expand Down
3 changes: 1 addition & 2 deletions account_invoice_select_for_payment/models/account_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ def action_register_payment(self):
invoices = self.env["account.move"].search(
[("id", "in", active_ids), ("selected_for_payment", "=", True)]
)
invoices.write({"selected_for_payment": False})
return super().action_register_payment()
return invoices.write({"selected_for_payment": False})
1 change: 1 addition & 0 deletions account_invoice_select_for_payment/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Alexandre Fayolle \<<[email protected]>\>
- Hiep Nguyen Hoang \<<[email protected]>\>
- Khoi (Kien Kim) \<<[email protected]>\>
4 changes: 4 additions & 0 deletions account_invoice_select_for_payment/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
The development of this module has been financially supported by:

- Camptocamp

The migration of this module from 14.0 to 18.0 was financially supported by:

- Camptocamp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li>Alexandre Fayolle &lt;<a class="reference external" href="mailto:alexandre.fayolle&#64;camptocamp.com">alexandre.fayolle&#64;camptocamp.com</a>&gt;</li>
<li>Hiep Nguyen Hoang &lt;<a class="reference external" href="mailto:hiepnh&#64;trobz.com">hiepnh&#64;trobz.com</a>&gt;</li>
<li>Khoi (Kien Kim) &lt;<a class="reference external" href="mailto:khoikk&#64;trobz.com">khoikk&#64;trobz.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="other-credits">
Expand All @@ -434,6 +435,11 @@ <h2><a class="toc-backref" href="#toc-entry-6">Other credits</a></h2>
<ul class="simple">
<li>Camptocamp</li>
</ul>
<p>The migration of this module from 14.0 to 18.0 was financially supported
by:</p>
<ul class="simple">
<li>Camptocamp</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
Expand Down
4 changes: 2 additions & 2 deletions account_invoice_select_for_payment/views/account_move.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<field name="name" position="before">
<field
name="selected_for_payment"
attrs="{'invisible': [('payment_state', 'not in', ['not_paid', 'partial']) ]}"
widget="toggle_button"
invisible="payment_state not in ('not_paid', 'partial')"
widget="boolean_toggle"
/>
</field>
</field>
Expand Down

0 comments on commit bf2ea68

Please sign in to comment.