[6.1] Error in View after execute a button object
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) | Status tracked in Trunk | |||||
6.1 |
Confirmed
|
Low
|
OpenERP Publisher's Warranty Team | |||
Trunk |
Invalid
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
addons: 6727
web: 2296
server: 4134
object1 (supplier.
_columns = {
'name': fields.char('Name', size=64, required=True),
'fees_
}
object2 (supplier.
def read_fees_
fees_files = self.browse(
import_
supp = self.write(
import_fields = self.pool.
res = []
_struct = {}
_struct.
_struct.
_struct.
_rec = [0,False,_struct]
res.append(_rec)
val = {'field_
supp = self.write(
view_
value = {
'name'
'view_
'res_model': 'supplier.
"src_model": 'supplier.
'view_id': 'supplier_
'views': [(view_id and view_id[1] or 0, 'form')],
'type': 'ir.actions.
'target':'new',
'res_id':ids[0],
}
return value
_columns = {
'name'
'field_
'config_
}
object3 (supplier.
_columns = {
'name': fields.
'sequence': fields.
'lang'
'fees_
}
views:
<record model="ir.ui.view" id="csv_
<field name="name"
<field name="model"
<field name="type"
<field name="priority" eval="5"/>
<field name="arch" type="xml">
<form string="Field(s) Mapping">
<field name="name" select="1"/>
<group string="Fees File" col="10" colspan="4">
<field name="fees_
</group>
</form>
</field>
</record>
<record model="ir.ui.view" id="supplier_
<field name="name"
<field name="model"
<field name="type"
<field name="priority" eval="5"/>
<field name="arch" type="xml">
<form string="Fees">
<field name="name"/>
<button name="read_
<field name="field_
<tree editable="top">
<field name="sequence"/>
<field name="name"/>
<field name="fees_
</tree>
</field>
</form>
</field>
</record>
When I push the button to execute 'read_fees_file' I'm getting a error:
--> ' _.detect(
The problem is that in the function (read_fees_file), I delete the current links
of the one2many 'field_fees_ids' and update it whith the new one's, who's creating
new id's in the 'supplier.
creating/refreshing the new view.
Changed in openerp-web: | |
status: | Incomplete → New |
Hello kurt ,
I have checked this issue at my end but I did not face any problem regarding import. fees.files field_id" /> its working fine at my end.
this issue. but I get view fees_field_id because of its not field of supplier.
.After a removing a field <field name="fees_
So would you please check this again and provide more information
regarding this issue.
I have attached a video for you more information.
Thanks and waiting for reply!