Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
5022 Visninger

Hello, I have 2 simple models:

 the first one is to create a product and it has name and quantity

the other one is to record how many products sold. 

I want to get the quantity value from the first model onto the second one and update it if something is sold, how can I do that? 

Thanks,,,

Avatar
Kassér
Bedste svar

Hi,

You can create a Many2one field in the second model with first model as comodel. Then you can access the quantity field of first model as "many2one_fleld_id.quantity".

Regards

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
aug. 23
3976
0
apr. 23
3002
5
jun. 21
17930
1
mar. 21
5791
1
nov. 19
3709