It is possible to attach documents to a Sales Order, in various ways. We need this also for the Purchase Order.
This way we can send our drawings to the manufacturers.
How can we do this, it seems the basis is there, we only need to add the option for purchase orders or quotations.
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,
Please refer to the code below:
Python
from odoo import models, fields
class PurchaseOrder(models.Model):
_inherit = 'purchase.order'
attachment_ids = fields.Many2many(
'ir.attachment',
'purchase_order_attachment_rel',
'purchase_id', 'attachment_id',
string='Attachments'
)
XML
<record id="purchase_order_form" model="ir.ui.view">
<field name="name">purchase.order.view.form.inherit</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='products']" position="after">
<page string="Attachments">
<field name="attachment_ids" widget="many2many_binary"/>
</page>
</xpath>
</field>
</record>
Hope it helps.
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ść | |
---|---|---|---|---|
|
2
sie 25
|
3362 | ||
|
0
sty 23
|
1827 | ||
|
2
kwi 22
|
5053 | ||
|
1
lut 19
|
3007 | ||
|
1
lis 17
|
4389 |
Hello Jaap,
Could you clarify more on your above message?
You can easily attach drawings directly to sales and purchase orders through the chatter section.
Thanks,
info@creyox.com