-
2 votesanswersviews
Laravel Nova - 如何确定资源计算字段的视图(索引,详细信息,表单)?
我想在查看索引视图时返回与计算字段不同的结果,而不是在查看资源的详细视图时 . 基本上类似于下面的viewIs(): Text::make('Preview', function () { if($this->viewIs('index'){ return \small_preview($this->image); } return \large... -
1 votesanswersviews
Sitecore 8.1计算的索引字段仅用于索引solr上的alt文本
前几天进入这个问题但是找不到解决这个问题的任何东西(来自谷歌搜索) . 我使用Solr作为我的索引引擎 . 我正在尝试索引模板中的图像字段 . 索引工作正常,但它没有索引媒体URL(我从我的代码返回)而不是索引图像的ALT文本 . 如果ALT文本不存在,那么它将索引媒体URL . 我将索引配置放在一个单独的文件中 . 我认为默认的Sitecore.ContentSearch.Solr.Defaul... -
3 votesanswersviews
如何从计算字段中读取?在Odoo 9
我在名为 page_price 的模型中有一个计算字段 . Class Page(models.Model): page_price = fields.Float(compute='compute_page_price') def compute_page_price(self): self.page_price = 7 # this value is an e... -
2 votesanswersviews
如何通过Odoo中的计算字段进行搜索?
我正在尝试通过Odoo 9中的计算字段进行搜索 . 但它会返回所有记录作为结果 . class Version(models.Model): _name='product_cars_application.version' name = fields.Char(compute="_get_name", store=True) @api.one ... -
0 votesanswersviews
如何通过Odoo中的计算字段进行搜索? V9
@api.multi def _compute_product_description(self): def get_parent_move(move): if move.move_dest_id: return get_parent_move(move.move_dest_id) return move for produ...