Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Jan 19, 2024
1 parent a8d8303 commit f0eedaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion grap_custom_import_product/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _custom_import_prevent_duplicate_fields(self):
string="Product Gross Price - Supplier (For import)", store=False
)

grap_import_supplier_uom_purchase_qty = fields.Float(
grap_import_supplier_invoice_qty = fields.Float(
string="Invoice Qty - Supplier (For import)", store=False
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name,uom_id,categ_id,barcode,list_price,grap_import_supplier_name,grap_import_supplier_product_code,grap_import_supplier_product_name,grap_import_supplier_gross_price,grap_import_supplier_uom_purchase_qty
name,uom_id,categ_id,barcode,list_price,grap_import_supplier_name,grap_import_supplier_product_code,grap_import_supplier_product_name,grap_import_supplier_gross_price,grap_import_supplier_invoice_qty
Coca Cola (Import),Units,All / Saleable / Office Furniture,5000112602791,4.12,Ready Mat,CC,BOTTLE 33CL,21.35,6
Produit B,Units,All / Saleable / Office Furniture,,8,,,,,
Produit C,Units,All / Saleable,,2.30,,,,,
4 changes: 2 additions & 2 deletions grap_custom_import_product/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ def test_01_import_product(self):
"grap_custom_import_product", "product.product", "product.csv"
)
self.assertFalse(messages)
self.assertEqual(len(products), 1)
self.assertEqual(products.name, "Coca Cola (Import)")
self.assertEqual(len(products), 3)
self.assertIn("Coca Cola (Import)", products.mapped("name"))

0 comments on commit f0eedaa

Please sign in to comment.