Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a195ce7f90 |
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Python
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*$py.class
|
||||||
|
|
||||||
|
# OS
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Editor
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# Odoo
|
||||||
|
*.pot
|
||||||
@ -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': """
|
||||||
|
|||||||
Binary file not shown.
@ -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
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user