Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion account_invoice_supplierinfo_update/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def test_get_the_right_variant_supplierinfo(self):
)

# Set the variation 2 on the invoice and run the wizard
self.line_a.write({"product_id": product_a_2, "price_unit": 400})
# import pdb; pdb.set_trace()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# import pdb; pdb.set_trace()

self.line_a.write({"product_id": product_a_2.id, "price_unit": 400})
vals_wizard = self.invoice.check_supplierinfo().get("context", {})
line_ids = vals_wizard.get("default_line_ids", {})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
help="Check if the invoice information are similar from the supplier information"
class="oe_highlight"
type="object"
attrs="{'invisible': ['|', ('supplierinfo_ok', '=', True), ('partner_id', '=', False)]}"
attrs="{'invisible': ['|', '|', ('supplierinfo_ok', '=', True), ('partner_id', '=', False), ('move_type', 'not in', ['in_invoice', 'in_refund'])]}"
/>
</xpath>
<field name="to_check" position="before">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
confirm="Do you want to set invoice as checked ?"
help="This will mark the invoice as checked. It will be possible to uncheck manually in the 'Other Info' tab."
/>
or
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
</form>
Expand Down
Loading