14 lines
382 B
Python
14 lines
382 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class SaleOrder(models.Model):
|
|
_inherit = 'sale.order'
|
|
|
|
def _filter_product_documents(self, documents):
|
|
return (
|
|
super()._filter_product_documents(documents)
|
|
| documents.filtered(lambda document: document.attached_on == 'inside')
|
|
)
|