addons-cm/purchase_collective/models/sale_order.py
santiky 4abeea64a5
wip purchase_collective.
ToDo: Plantillas de correo, crear picking por supplier
2022-03-24 09:02:45 +01:00

16 lines
404 B
Python

import random
from odoo import models, api, fields
class SaleOrder(models.Model):
_inherit = "sale.order"
cp_order_id = fields.Many2one(
'purchase_collective.order',
string='Parent Collective Purchase',
help='The collective purchase wich this order belongs',
ondelete='restrict'
)
is_cp = fields.Boolean(string="Is part of a Collective Purchase")