Compare commits

..

No commits in common. "19.0" and "main" have entirely different histories.
19.0 ... main

5 changed files with 4 additions and 19 deletions

15
.gitignore vendored
View File

@ -1,15 +0,0 @@
# 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',
'version': '19.0.1.0.0',
'version': '17.0.1.0.0',
'category': 'Purchases',
'summary': 'Sync Vendor Bills with Purchase Orders',
'description': """

View File

@ -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.env.cr.execute("UPDATE stock_valuation_layer SET create_date = %s WHERE id = %s", (new_date, svl.id))
self._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

View File

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