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 fa9b811..6c2c26f 100644 Binary files a/wizard/__pycache__/purchase_bill_sync_wizard.cpython-312.pyc and b/wizard/__pycache__/purchase_bill_sync_wizard.cpython-312.pyc differ 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 @@ - + - +