Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions base/partner.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ func init() {
"Children": models.One2ManyField{RelationModel: h.Partner(),
ReverseFK: "Parent", Filter: q.Partner().Active().Equals(true)},
"Ref": models.CharField{String: "Internal Reference", Index: true},
//"Lang": models.CharField{String: "Language",
// Default: func(env models.Environment) interface{} {
// return env.Context().GetString("lang")
// }, Help: `If the selected language is loaded in the system, all documents related to
//this contact will be printed in this language. If not, it will be English.`},
"Lang": models.SelectionField{
String: "Language",
Default: func(env models.Environment) interface{} {
Expand Down
1 change: 1 addition & 0 deletions base/sequence.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ gap in the sequence (while they are possible in the former).`},
q.Sequence().Company().In(companies).Or().Company().IsNull()))
if seqs.IsEmpty() {
log.Debug("No Sequence has been found for this code", "code", sequenceCode, "companies", companies)
return "False"
}
forceCompanyID := rs.Env().Context().GetInteger("force_company")
if forceCompanyID == 0 {
Expand Down