wip purchase_collective.
ToDo: Plantillas de correo, crear picking por supplier
This commit is contained in:
parent
d2ac963ee1
commit
4abeea64a5
13 changed files with 836 additions and 0 deletions
16
purchase_collective/models/sale_order.py
Normal file
16
purchase_collective/models/sale_order.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue