Replies: 1 comment 1 reply
-
On the action of the record, put a domain to filter what records do you want to see.
If you can't launch an action, you can add extra parameters to a context in the form or kanban view:
Also you can add to a context the view you want to load when clicking the element:
Examples above are copied directly get from Odoo codebase. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have 3 different kanban views,
The first is the Kanban view to display block data using the block.py model (blok.mesin) where there are 5 blocks of data from blocks, namely Blocks E, F, G, H, and I. The second is the Kanban view to display machine lines using the line model. py (line.mesin.produksi) which has 13 lines. and the last one is the Kanban view for production machines using the datamesin.py model (data.mesin.produksi).
I input it into the machine data form based on the fields below.
rpm = fields.Integer(string='RPM')
For example, the data I created is as follows:
Nomor Mesin: I25
Nama Mesin: Shuttle
Kode Kain: UMR 07
RPM: 5000
Line: Line 1
Block: Block I
Divisi: Sales
My goal is that when I save the record, the data will appear in Blok I and Line 1.
![dashboard for Blok](https://private-user-images.githubusercontent.com/135787412/267911540-6d8891f6-2bff-475e-8fb6-b17f3251ea83.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNDk3NTQsIm5iZiI6MTcyNDA0OTQ1NCwicGF0aCI6Ii8xMzU3ODc0MTIvMjY3OTExNTQwLTZkODg5MWY2LTJiZmYtNDc1ZS04ZmI2LWIxN2YzMjUxZWE4My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOVQwNjM3MzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZTM4ZGJmMTEzNGFiMDdhNGYwZTljNDk5N2JmMGI2M2UyZWNjYTllYmNmM2MwYjdjY2QyZmJlNDI0NTM1ODBlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.BBnYVVhRDY4NE2HAttMPeyKkmE0SmjbHhf1Jr6veVbI)
![dashboard for Line](https://private-user-images.githubusercontent.com/135787412/267911560-983f6613-38ae-4472-bb14-c7309f0f2096.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNDk3NTQsIm5iZiI6MTcyNDA0OTQ1NCwicGF0aCI6Ii8xMzU3ODc0MTIvMjY3OTExNTYwLTk4M2Y2NjEzLTM4YWUtNDQ3Mi1iYjE0LWM3MzA5ZjBmMjA5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOVQwNjM3MzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMWU1Yjc3Y2I1YTYxODlhOWYyYWUyZWEyY2JjNWZhNjlkMTIwZThhOTdlOWM3YzVmNDlkZGZlNmY2ZDYyYzk5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.WLAgPDLeEHrclWJeOjmjZXECuSHUHWYnv-CEnyC2yjg)
So when the user accesses the Kanban view and clicks on Block I and Line 1, the data appears there.
the problem is everytime i try save the record, it appear in every Blok and Line
any idea how to achieve my goal?
Beta Was this translation helpful? Give feedback.
All reactions