我是 Odoo 的新手,我正在寻找一种在客户发票概览中添加/编辑列的方法。
有谁知道要编辑哪些文件?或者如何调用这个“概览屏幕”以便我可以更好地查看它?
概览屏幕截图链接:http: //oi58.tinypic.com/2prtyk0.jpg
提前致谢!
我是 Odoo 的新手,我正在寻找一种在客户发票概览中添加/编辑列的方法。
有谁知道要编辑哪些文件?或者如何调用这个“概览屏幕”以便我可以更好地查看它?
概览屏幕截图链接:http: //oi58.tinypic.com/2prtyk0.jpg
提前致谢!
这个“树”的视图定义在
addons/account/views/account_invoice_view.xml
其中有这样的代码:
<record id="invoice_tree" model="ir.ui.view">
<field name="name">account.invoice.tree</field>
<field name="model">account.invoice</field>
<field name="arch" type="xml">
<tree decoration-info="state == 'draft'" decoration-muted="state == 'cancel'" string="Invoice">
<field name="partner_id" groups="base.group_user" string="Customer"/>
<field name="date_invoice"/>
<field name="number"/>
<field name="commercial_partner_id" invisible="1"/>
<field name="reference" invisible="1"/>
<field name="name" invisible="1"/>
<field name="journal_id" invisible="1"/>
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
<field name="user_id"/>
<field name="date_due"/>
<field name="origin"/>
<field name="amount_total_signed" sum="Total Amount"/>
<field name="residual_signed" sum="Residual Amount"/>
<field name="currency_id" invisible="1"/>
<field name="company_currency_id" invisible="1"/>
<field name="state"/>
<field name="type" invisible="context.get('type',True)"/>
</tree>
</field>
</record>
我建议您使用开发人员模式来了解您想要更改/编辑/继承/..等的视图名称,
转到管理员 => 关于 Odoo => 激活开发人员模式,然后返回视图,您将在当前视图的名称附近看到一个 带有名称的下拉列表Debug View#xx
单击此处,然后选择Edit TreeView/FormView/...etc
您将看到的定义当前视图,这样你就知道需要继承/编辑/..etc什么视图
我希望这能帮到您!