Skip to content

Commit

Permalink
[FIX]purchase_invoice_line_zero: The method was modified since the fi…
Browse files Browse the repository at this point in the history
…elds were renamed
  • Loading branch information
olveracuenca authored and alan196 committed Jun 26, 2023
1 parent 34be518 commit 6e7c97b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 19 deletions.
2 changes: 1 addition & 1 deletion purchase_invoice_line_zero/README.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Purchase Line Invoice Line Zero
Purchase Line Invoice Line Zero
5 changes: 1 addition & 4 deletions purchase_invoice_line_zero/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# Copyright 2023, Jarsa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
from . import models
5 changes: 1 addition & 4 deletions purchase_invoice_line_zero/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# © 2023 Jarsa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Purchase Invoice Line Zero",
"version": "15.0.1.0.0",
Expand All @@ -12,4 +9,4 @@
"purchase",
],
"installable": True,
}
}
5 changes: 1 addition & 4 deletions purchase_invoice_line_zero/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# Copyright 2023, Jarsa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import account_move
from . import account_move
11 changes: 5 additions & 6 deletions purchase_invoice_line_zero/models/account_move.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Copyright 2020, Jarsa Sistemas, S.A. de C.V.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).


from odoo import api, models


Expand Down Expand Up @@ -58,6 +54,9 @@ def _onchange_purchase_auto_complete(self):

# Compute invoice_payment_ref.
if len(refs) == 1:
self.invoice_payment_ref = refs[0]
self.payment_reference = refs[0]

self.purchase_id = False
self.purchase_id = False
self._onchange_currency()
bank = self.bank_partner_id.bank_ids and self.bank_partner_id.bank_ids[0]
self.partner_bank_id = bank
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.black]
line-length=119
skip-string-normalization=false

0 comments on commit 6e7c97b

Please sign in to comment.