The _compute_related function can only update one translation but not all. We
decide not to update all translations to avoid increasing the time complexity.
As a result, the value for related translated fields should always be generated
in the runtime, and storing it is illegal.
A related translated stored field may work as expected in a single language
environment. But in mult languages environment, if you have a name field
name = fields.Char(related="parent_id.name", store=True)
changing parent_id in French, will only change the French translation of the
name field
This PR tries to remove these fields. And a warning is added to prevent
developers creating a related translated stored field in the future.
closes odoo/odoo#102553
Related: odoo/upgrade#4004
Signed-off-by: Wang Chong (cwg) <cwg@odoo.com>
17 lines
751 B
XML
17 lines
751 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record model="ir.ui.view" id="stock_move_line_view_search_delivery">
|
|
<field name="name">stock.move.line.search.delivery</field>
|
|
<field name="model">stock.move.line</field>
|
|
<field name="inherit_id" ref="stock.stock_move_line_view_search"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='owner_id']" position="after">
|
|
<field name="carrier_id" invisible="1" string="Carrier name"/>
|
|
</xpath>
|
|
<xpath expr="//group[@name='groupby']" position="inside">
|
|
<filter string="Carrier" name="by_carrier" context="{'group_by': 'carrier_id'}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|