class A(models.Model):
area = fields.Float( compute = "_compute_area" , string = "Area" , track_visibility = 'onchange' , digits =( 12 , 7 ))
price_Pc = fields.Float( compute = "_compute_price_Pc " , string = "Price/Pc" , track_visibility = 'onchange' , digits =( 12 , 10 ))
rate_SqM = fields.Float( compute ="_compute_rate_SqM" , string = "Rate/SqM" , track_visibility = 'onchange' , digits =( 12 , 2 ))
gsm = fields. Float( required = True , string = "GSM" , track_visibility = 'onchange' )
rate_Kg = fields.Float( required = True , string = "Rate/Kg" , track_visibility = 'onchange' )
coverage = fields. Float( default = 100.0 , required = True , string = "Coverage" , track_visibility = 'onchange' )
@api.depends('?????????')
def _compute_area(self):
pass
class B(models.Model):
a = field.many2many(comodel_name="module.A") deck = fields.float()
question is how can i access "deck" value inside model A's depends() ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
1
Odpovědět
2128
Zobrazení
A is many2many field in B
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
0
zář 22
|
1828 | ||
|
1
čvc 22
|
2070 | ||
|
3
dub 23
|
11861 | ||
|
0
úno 23
|
157 | ||
|
0
pro 22
|
2805 |
please also state the relation between objects A and B.