我试图在odoo(以前的OpenERP)中将值插入到many2many或one2manhy关系表中.你知道怎么做吗?
谢谢
如何在odoo上添加一个相关的字段
我想在stock.picking相关的stock.picking原始字段中添加一个文本字段
我试过这个:
_columns={
'sourcebl': fields.related('picking_id', 'origin', type='char', relation='stock.picking', string='Class Description', store=True, readonly=True),
}
Run Code Online (Sandbox Code Playgroud)
你有什么主意吗
我想用ORM方法,如browse或search在Python控制台.
$pwd
/opt/odoo/
$python
>>> import openerp
>>> product_obj = pool.get('product.product)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'pool' is not defined
Run Code Online (Sandbox Code Playgroud)
我怎么能实现这一目标?
我将数据库升级到 Odoo 15 但仍然出现此错误:
Style error
The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.
Could not get content for /web/static/src/scss/webclient.scss defined in bundle 'web.assets_backend'.
Run Code Online (Sandbox Code Playgroud)
以及浏览器的日志:
Could not get content for /web_gantt_native/static/src/js/gantt_item_sorted.js defined in bundle 'web.assets_backend'. web.assets_backend.min.js:27116:9
Could not get content for /web_gantt_native/static/src/js/gantt_item.js defined in bundle 'web.assets_backend'. web.assets_backend.min.js:27119:9
Could not get content for /knowsystem/static/src/js/knowsystem_action_manager.js defined in bundle 'web.assets_backend'. web.assets_backend.min.js:28037:9
Could not get content for /knowsystem/static/src/js/knowsystem_readonly_formcontroller.js defined in …Run Code Online (Sandbox Code Playgroud)