forked from OCA/edi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improved matching of partner * Improved matching of products * Added matching of operating unit * Improved account move line name
- Loading branch information
Bastian Guenther
authored and
Bastian Guenther
committed
Dec 10, 2024
1 parent
3817747
commit 9bfae1b
Showing
6 changed files
with
187 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from odoo import models | ||
|
||
|
||
class ProductProduct(models.Model): | ||
_inherit = "product.product" | ||
|
||
def _get_e_invoice_default_code_search_args( | ||
self, default_code, wildcard_default_code | ||
): | ||
""" | ||
Return default search query for product search by default code in e invoice | ||
""" | ||
return [("default_code", "=", default_code)] | ||
|
||
def _get_e_invoice_barcode_search_args(self, barcode, wildcard_barcode): | ||
""" | ||
Return default search query for product search by barcode in e invoice | ||
""" | ||
return [("barcode", "=", barcode)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ stock-logistics-workflow | |
connector | ||
storage | ||
server-auth | ||
operating-unit |