feat: Upgrade module to Odoo 19.0, update view list tag, and add .gitignore.

This commit is contained in:
Suherdy Yacob 2026-01-20 17:20:18 +07:00
parent 2ab207ccd9
commit a195ce7f90
5 changed files with 19 additions and 4 deletions

15
.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
# Python
__pycache__/
*.py[cod]
*$py.class
# OS
.DS_Store
Thumbs.db
# Editor
.vscode/
.idea/
# Odoo
*.pot

View File

@ -1,6 +1,6 @@
{ {
'name': 'Purchase Bill Sync', 'name': 'Purchase Bill Sync',
'version': '17.0.1.0.0', 'version': '19.0.1.0.0',
'category': 'Purchases', 'category': 'Purchases',
'summary': 'Sync Vendor Bills with Purchase Orders', 'summary': 'Sync Vendor Bills with Purchase Orders',
'description': """ 'description': """

View File

@ -160,7 +160,7 @@ class PurchaseBillSyncWizard(models.TransientModel):
# We use SQL because create_date is read-only in ORM # We use SQL because create_date is read-only in ORM
if stock_move.date: if stock_move.date:
new_date = stock_move.date + timedelta(seconds=1) 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 # AVCO/FIFO Logic: Update Standard Price and Distribute Value to Layers
product = stock_move.product_id product = stock_move.product_id

View File

@ -17,12 +17,12 @@
<notebook> <notebook>
<page string="Discrepancies"> <page string="Discrepancies">
<field name="line_ids"> <field name="line_ids">
<tree editable="bottom" create="0" delete="0"> <list editable="bottom" create="0" delete="0">
<field name="selected"/> <field name="selected"/>
<field name="move_id"/> <field name="move_id"/>
<field name="partner_id"/> <field name="partner_id"/>
<field name="discrepancy_details"/> <field name="discrepancy_details"/>
</tree> </list>
</field> </field>
</page> </page>
</notebook> </notebook>