Xml 网站中的表单,用于更新或添加成员

Xml 网站中的表单,用于更新或添加成员,xml,openerp,Xml,Openerp,我想创建一个HTML页面,其中的表单可以更新一个或多个成员。我创建表单,字段和我的输入之间的链接,我必须在目标中添加什么来更新或添加成员 <form action="" class="oe_signup_form" role="form" method="post" t-attf-action="" t-if="not message" onsubmit="" enctype=""> <div class="form-group"> <label for="na

我想创建一个HTML页面,其中的表单可以更新一个或多个成员。我创建表单,字段和我的输入之间的链接,我必须在目标中添加什么来更新或添加成员

<form action="" class="oe_signup_form" role="form" method="post" t-attf-action="" t-if="not message"
onsubmit="" enctype="">

<div class="form-group">

<label for="name" class="control-label">

<input type="text" name="name" id="name" t-att-value="name" class="form-control" autofocus="autofocus" required="required"/>
Name 
</label>
</div>

<div class="clearfix oe_login_buttons">

<a t-attf-href="" class="btn btn-link pull-right">Valider</a>

<button type="submit" class="btn btn-primary pull-left">Valider</button>
</div>
</form>

名字
瓦利德

谢谢

据我所知,您希望使用html表单将记录添加到odoo模型

第一步是制作html页面表单

第二步是创建web控制器,它将处理来自表单的post请求

第三步使用request.registry[].create()将记录添加到模型中


要了解更多详细的示例,请阅读odoo源代码

更新成员中的哪些内容?!您需要显示一些后端处理此post请求的内容?请在您的解释中明确说明,并添加一个提琴。