Merge branch '6.2' of https://gitea.onecluster.org/OneTeam/trytondo-optical_equipment into 6.2
This commit is contained in:
commit
b31e9f39f7
@ -1,5 +1,6 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
import datetime
|
||||
from collections import defaultdict
|
||||
from trytond.pool import Pool
|
||||
from trytond.model import (
|
||||
|
4
sale.py
4
sale.py
@ -44,6 +44,10 @@ class Sale(metaclass=PoolMeta):
|
||||
'invisible': (Eval('sale_type') != 'maintenance'),
|
||||
'readonly': True})
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super(Sale, cls).__setup__()
|
||||
cls.contact.states['required']=True
|
||||
|
||||
@fields.depends('lines', 'sale_type', 'agended')
|
||||
def on_chage_sale_type(self):
|
||||
|
Loading…
Reference in New Issue
Block a user