Odoo Hilfe

0

0
3 Answers
0

Hello,

Add context in button like below:

​<button name="action_pass_value"  type="object" string="Process Adjustment" class="oe_highlight" states="paid" attrs="{'invisible': ['|', ('state', '!=', 'paid'), ('is_adjusted_done', '=',True)]}" context="
context.get('current_id')"/>

1 Kommentar
Usman Farzand
15.06.19, 05:03

no result

2
Avatar

Niyas Raphy

--Niyas Raphy--
24653
| 7 7 11
Wayanad, Kerala, Indien
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to connect :  niyasraphyk@gmail.com

Twitter:https://twitter.com/niyasraphy
LinkedIn: https://www.linkedin.com/in/niyasraphy/
FB:https://www.facebook.com/niyasraphy123

Happy to help :)

Niyas Raphy
15.06.19, 05:57

Hi,

What you can do is that the refer the working of the Mark as Lost button in the CRM Leads form view, on the button click the wizard will get opened and the lead_id is passed in the context and received in the wizard. Please have a look at it and see how it is done.


Also you can check whether the self.env.context.get('active_ids') can give you the id of the original record.


Thanks


2 Comments
Usman Farzand
15.06.19, 06:06

you solution all time simple and out of the box .... :-)

Niyas Raphy
15.06.19, 23:27

:) and seems other answer is marked as resolved

Fragen Sie
Writer
Keep Informed
1 Verfolger
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now