odoo-ide / pycharm-odoo

PyCharm plugin for Odoo
https://plugins.jetbrains.com/plugin/13499-odoo
Other
41 stars 5 forks source link

False positive unresolved reference #399

Closed jerzyk closed 12 months ago

jerzyk commented 12 months ago

open R14 addons/sale/models/sale.py line 1341:

                if line.product_id.type in ('consu', 'product'):
Screenshot 2023-07-12 at 14 45 57

'product' is defined in product module, sale module has product indirect dependency (sale->payment->account->product)

trinhanhngoc commented 12 months ago

Hi @jerzyk , I just checked this. I think the unresolved reference report is correct. The product value is defined in the stock module. The product module defines only two values: consu and service.

product/models/product_template.py

image

stock/models/product.py

image
jerzyk commented 12 months ago

you are right! so I'll report this as an error to odoo