In stock_scheduler_compute_views.
<record id="view_procurement_compute_w
<field name="name">Run Schedulers Manually</field>
<field name="model">stock.scheduler.c
<field name="arch" type="xml">
<form string="Parameters">
<p>
When you run the schedulers, Odoo tries to reserve the
available stock to fulfill the existing pickings
and verify if some reordering rules should be triggered.
</p>
<footer>
<button name="procure_calculation" string="Run
Schedulers" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-default" special="cancel" />
</footer>
</form>
</field>
</record>
If I want to replace this view, I wrote:
<record id="view_procurement_compute_w
<field name="name">Run Schedulers Manually</field>
<field name="model">stock.scheduler.c
<field name="inherit_id" ref="xxx"/>
</record>
I read the document, it says ref is the current view's parent view,
In my case, what should I write in <field name="inherit_id" ref="xxx"/>?
Thanks a lot!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
3
回复
3894
查看
if i was you i will never do that >>
for odoo best practic is to not override any odoo records for any reasons supposed that you uninstall your module odoo maybee will by crushed or put you in a thoubleshooting issues so try any other work around to get what you need in a saftey way ..
Hello
you need to write like this
<record id="stock.view_procurement_compute_w
<field name="model">stock.scheduler.c
<field name="arch" type="xml">
# here you code
</field>
</record>
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
1
3月 15
|
4898 | ||
|
4
9月 24
|
24344 | ||
fetch parent_id
已解决
|
|
1
11月 22
|
2820 | |
|
0
4月 19
|
3792 | ||
|
0
6月 17
|
6249 |
Reference: http://learnopenerp.blogspot.com/2018/01/inheritance-in-models-and-views.html