Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1711 Weergaven

I have some custom modules developed from scratch in that Monetory fields are not taking 0 value instead its reverting to previous value.
installation : odoo 13.0 exe installation 

installed on : 13.0.20200412

Example : 
In form view xxx_monetory : 5000 --> 0 when I click on save button the previous value i.e 5000 is reverting back to that field.
This is happening only in custom modules not in standard modules like CRM, Sales etc.
Please help me out on this.

Field declaration :

In .py file

company_id = fields.Many2one('res.company', store=True, copy=False, string="Company", default=lambda self: self.env.user.company_id.id)
currency_id = fields.Many2one('res.currency', string="Currency", related='company_id.currency_id', default=lambda self: self.env.user.company_id.currency_id.id)
fee = fields.Monetary(string="Fee")

In .xml file

name="currency_id" invisible="1"/>
name="fee"/>


Avatar
Annuleer

It seems like a compute function is updating the fee,

Auteur

I have not added compute function for fee field as well as not updating this field from other methods.

Auteur Beste antwoord

Hi @Kiran K

I have observed that odoo 13.0 versions released on daily basis.
Release Dates Monetory Issue in custom module
odoo_13.0.20200412 Not Fixed
odoo_13.0.20200413 Not Fixed
odoo_13.0.20200415 Not Fixed
odoo_13.0.20200417 Not Fixed
odoo_13.0.20200418 Fixed
odoo_13.0.20200419 Fixed
odoo_13.0.20200420 Fixed
From date 18/04/2020 onwards this issue has been fixed then how do I fix this issue on 20200412 date released version because the client is using this date version.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
mei 24
12615
1
apr. 24
3253
0
nov. 23
1996
1
sep. 23
2085
2
aug. 23
4479