I would like to add documents to a form similar to the Projects Tasks where you can link documents to the task but it is stored in Documents. If anyone has any solutions or can point me where to look that would be great!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Hi,
Create a Many2many Field: The task model and the field to link documents.
class CustomTask(models.Model):
_name = 'project.task'
document_ids = fields.Many2many('ir.attachment', string='Documents')
<record id="view_custom_task_form" model="ir.ui.view">
<field name="name">project.task.form.
<field name="model">project.task</
<field name="inherit_id" ref="project.project_sharing_
<field name="arch" type="xml">
<xpath expr="//notebook/page[@name='
<group>
<field name="document_ids" widget="many2many_tags"/>
</group>
</xpath>
</field>
</record>
Hope it helps
Thanks, but is there a way to achieve this in Studio ?
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
Change position chatter
Rozwiązane
|
|
1
sie 25
|
191 | |
|
4
lip 25
|
1564 | ||
|
1
lip 25
|
866 | ||
|
2
lip 25
|
888 | ||
|
1
lip 25
|
1994 |