Can we create a module which depends on the other and does not contain any field and only has a function which is called by its only button in a view?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Yes evaon, Yes you can create module without fields.
I have a module that depends on account and inherit from invoice.py so i wish to work on the invoice with the use of a button in this new module. I tried creating it but my view points to process transition view. please check
Are you getting any error? if yes then past your error here.
no there is no error but what my view should be it is not like that. I have only a button on my view and when i click on the menu of my module process transition view appears. I don't understand why or probably the module without columns is not possible!
please post your code over here.
class demo(osv.osv): _name = 'demo' # _inherit = 'account.invoice'
def test_fun(self, cr, uid, ids,context):
res = {}
amount = 100
raise orm.except_orm(_('Fees amount'), str(amount))
return True
demo()
Yes you can do it. Maybe something in your code is wrong. Could you please post here your py and xml code? It's going to be helpful to see where is the error. I made that many times and it never failed
Yes i did it! there was a mistake in my xml thanks.
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
How to connect button with function?
Opgelost
|
|
3
dec. 23
|
19865 | |
|
0
dec. 24
|
1183 | ||
|
2
jul. 25
|
4102 | ||
|
1
okt. 23
|
3394 | ||
|
2
sep. 22
|
8285 |