From a195ce7f901fdfba44d4a4831a215833855b98d0 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Tue, 20 Jan 2026 17:20:18 +0700 Subject: [PATCH] feat: Upgrade module to Odoo 19.0, update view list tag, and add .gitignore. --- .gitignore | 15 +++++++++++++++ __manifest__.py | 2 +- .../purchase_bill_sync_wizard.cpython-312.pyc | Bin 13070 -> 13093 bytes wizard/purchase_bill_sync_wizard.py | 2 +- wizard/purchase_bill_sync_wizard_views.xml | 4 ++-- 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0764234 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# Python +__pycache__/ +*.py[cod] +*$py.class + +# OS +.DS_Store +Thumbs.db + +# Editor +.vscode/ +.idea/ + +# Odoo +*.pot diff --git a/__manifest__.py b/__manifest__.py index 0943e39..c36e21d 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Purchase Bill Sync', - 'version': '17.0.1.0.0', + 'version': '19.0.1.0.0', 'category': 'Purchases', 'summary': 'Sync Vendor Bills with Purchase Orders', 'description': """ diff --git a/wizard/__pycache__/purchase_bill_sync_wizard.cpython-312.pyc b/wizard/__pycache__/purchase_bill_sync_wizard.cpython-312.pyc index fa9b811950bc3c3a59981a4fe057ec2558bf7db3..6c2c26fb19b3392a95573444c38eeda2c0aa56e7 100644 GIT binary patch delta 244 zcmeB6TbjmunwOW00SJ8NWMt0T$a|2R(Q@;7?#awdDSVSOx`0b&AtaH%vZxV`5~*w=1;;085zAN-;)xXd`eV)a!KG1CO*9-qw-Qcs!q_p>n6@B#(cde+tOWR*@%WEGwq zFU!MzfQ11l_HlEOtUU`O)8@^Jr2e)aDK9aohm&Jx%oh delta 232 zcmZ3Q)|bY6nwOW00SI;*#%E67$a|2R(R}lH?#awd0eq7e>Z(lc;Fo87GI<4mH2Y=- zhFX>ymdS?9BAev|<}x!Ln!HC?ntc;cn6HL!@M0ZdRu+aDUZ4P5&ypIRtkTJetiqG)`8m0O0^3*^faLSd zZL;<(Ow93{k13vFVyxdhQROd_>2-bki~9B-7#JKGotS`>E0ZsX@@EQS`VOK(nLa`& Upr8v=7}FO927~a;$JOJw0Xr&5Q2+n{ diff --git a/wizard/purchase_bill_sync_wizard.py b/wizard/purchase_bill_sync_wizard.py index 1bc3c0a..fd5306b 100644 --- a/wizard/purchase_bill_sync_wizard.py +++ b/wizard/purchase_bill_sync_wizard.py @@ -160,7 +160,7 @@ class PurchaseBillSyncWizard(models.TransientModel): # We use SQL because create_date is read-only in ORM if stock_move.date: new_date = stock_move.date + timedelta(seconds=1) - self._cr.execute("UPDATE stock_valuation_layer SET create_date = %s WHERE id = %s", (new_date, svl.id)) + self.env.cr.execute("UPDATE stock_valuation_layer SET create_date = %s WHERE id = %s", (new_date, svl.id)) # AVCO/FIFO Logic: Update Standard Price and Distribute Value to Layers product = stock_move.product_id diff --git a/wizard/purchase_bill_sync_wizard_views.xml b/wizard/purchase_bill_sync_wizard_views.xml index 981a5ce..dcd42ee 100644 --- a/wizard/purchase_bill_sync_wizard_views.xml +++ b/wizard/purchase_bill_sync_wizard_views.xml @@ -17,12 +17,12 @@ - + - +