Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
be9910c8 by Cédric Krier at 2023-01-14T19:52:29+01:00
Increase default size of main window
The average size of screen increases over time.
- - - - -
d2d201e5 by Cédric Krier at 2023-01-14T19:53:50+01:00
Use the same width chars in tryton than in sao
This unifies even more the rendering between clients.
- - - - -
2630fa74 by Cédric Krier at 2023-01-14T19:55:05+01:00
Expand address fields on sale and purchase form
- - - - -
6 changed files:
- modules/purchase/view/purchase_form.xml
- modules/sale/view/sale_form.xml
- tryton/tryton/config.py
- tryton/tryton/gui/main.py
- tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py
- tryton/tryton/gui/window/view_form/view/form_gtk/widget.py
Changes:
=====================================
modules/purchase/view/purchase_form.xml
=====================================
@@ -11,8 +11,8 @@
<label name="invoice_party"/>
<field name="invoice_party"/>
<label name="invoice_address"/>
- <field name="invoice_address"/>
- <newline/>
+ <field name="invoice_address" colspan="3"/>
+
<label name="description"/>
<field name="description" colspan="3"/>
<label name="reference"/>
=====================================
modules/sale/view/sale_form.xml
=====================================
@@ -12,9 +12,8 @@
<label name="invoice_party"/>
<field name="invoice_party"/>
<label name="invoice_address"/>
- <field name="invoice_address"/>
- <newline/>
+ <field name="invoice_address" colspan="3"/>
<label name="shipment_party"/>
<field name="shipment_party"/>
<label name="shipment_address"/>
@@ -17,9 +16,8 @@
<label name="shipment_party"/>
<field name="shipment_party"/>
<label name="shipment_address"/>
- <field name="shipment_address"/>
- <newline/>
+ <field name="shipment_address" colspan="3"/>
<label name="description"/>
<field name="description" colspan="3"/>
=====================================
tryton/tryton/config.py
=====================================
@@ -69,7 +69,7 @@
'bug.url': 'https://bugs.tryton.org/',
'download.url': 'https://downloads-cdn.tryton.org/',
'download.frequency': 60 * 60 * 8,
- 'menu.pane': 200,
+ 'menu.pane': 320,
}
self.config = {}
self.options = {}
=====================================
tryton/tryton/gui/main.py
=====================================
@@ -125,7 +125,7 @@
return
self.window = Gtk.ApplicationWindow(application=self, title="Tryton")
- self.window.set_default_size(960, 720)
+ self.window.set_default_size(1280, 960)
self.window.maximize()
self.window.set_position(Gtk.WindowPosition.CENTER)
self.window.set_resizable(True)
=====================================
tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py
=====================================
@@ -19,6 +19,7 @@
class Many2One(Widget):
+ default_width_chars = 12
def __init__(self, view, attrs):
super(Many2One, self).__init__(view, attrs)
=====================================
tryton/tryton/gui/window/view_form/view/form_gtk/widget.py
=====================================
@@ -16,7 +16,7 @@
class Widget(object):
expand = False
- default_width_chars = 25
+ default_width_chars = 8
def __init__(self, view, attrs):
super(Widget, self).__init__()
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/compare/cc0283f3af8479724588d515a77b7ced7dd2e6bf...2630fa74c0915f32050e9c2d960f87ab22bc4feb
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/compare/cc0283f3af8479724588d515a77b7ced7dd2e6bf...2630fa74c0915f32050e9c2d960f87ab22bc4feb
You're receiving this email because of your account on foss.heptapod.net.