mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-26 17:32:06 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
25
odoo-bringout-oca-ocb-sale/sale/models/product_document.py
Normal file
25
odoo-bringout-oca-ocb-sale/sale/models/product_document.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ProductDocument(models.Model):
|
||||
_inherit = 'product.document'
|
||||
|
||||
attached_on_sale = fields.Selection(
|
||||
selection=[
|
||||
('hidden', "Hidden"),
|
||||
('quotation', "On quote"),
|
||||
('sale_order', "On confirmed order"),
|
||||
],
|
||||
required=True,
|
||||
default='hidden',
|
||||
string="Sale : Visible at",
|
||||
help="Allows you to share the document with your customers within a sale.\n"
|
||||
"On quote: the document will be sent to and accessible by customers at any time.\n"
|
||||
"e.g. this option can be useful to share Product description files.\n"
|
||||
"On order confirmation: the document will be sent to and accessible by customers.\n"
|
||||
"e.g. this option can be useful to share User Manual or digital content bought"
|
||||
" on ecommerce. ",
|
||||
groups='sales_team.group_sale_salesman',
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue