mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update misc
This commit is contained in:
@@ -77,9 +77,9 @@ class Base(models.AbstractModel):
|
|||||||
if not domain:
|
if not domain:
|
||||||
domain = self._fields[fieldname].domain or []
|
domain = self._fields[fieldname].domain or []
|
||||||
try:
|
try:
|
||||||
rec = self.env[self._fields[fieldname].comodel_name].sudo().search(domain, limit=1)
|
rec = self.env[self._fields[fieldname].comodel_name].search(domain, limit=1)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
rec = self.env[self._fields[fieldname].comodel_name].sudo().search([], limit=1)
|
rec = self.env[self._fields[fieldname].comodel_name].search([], limit=1)
|
||||||
return rec.id if rec else False
|
return rec.id if rec else False
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,10 @@
|
|||||||
}
|
}
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.o_form_view .o_form_view_container {
|
.o_form_view .o_form_view_container {
|
||||||
|
// create 按键
|
||||||
|
button.o_form_button_create {
|
||||||
|
padding: 7px 10px;
|
||||||
|
}
|
||||||
.o_form_sheet_bg .o_form_sheet {
|
.o_form_sheet_bg .o_form_sheet {
|
||||||
margin: 6px auto;
|
margin: 6px auto;
|
||||||
max-width: 98%;
|
max-width: 98%;
|
||||||
|
|||||||
Reference in New Issue
Block a user