Browse Source

[IMP] : black, isort, prettier

14.0
Pedro M. Baeza 4 years ago
parent
commit
97ef1fb668
  1. 215
      base_location/static/description/icon.svg
  2. 3
      base_location/views/res_city_view.xml
  3. 6
      base_location/views/res_company_view.xml
  4. 1
      base_location/views/res_country_view.xml
  5. 1
      setup/base_location/odoo/addons/base_location
  6. 6
      setup/base_location/setup.py

215
base_location/static/description/icon.svg

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:ns0="&amp;#38;#38;ns_extend;"
xmlns:ns="&amp;#38;#38;ns_imrep;"
@ -22,9 +21,9 @@
sodipodi:docname="icon.svg"
inkscape:export-filename="icon.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs3037" />
inkscape:export-ydpi="90"
>
<defs id="defs3037" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
@ -42,16 +41,14 @@
inkscape:window-height="1176"
inkscape:window-x="59"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata3040">
inkscape:window-maximized="1"
/>
<metadata id="metadata3040">
<rdf:RDF>
<cc:Work
rdf:about="">
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@ -59,34 +56,31 @@
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-924.36218)">
transform="translate(0,-924.36218)"
>
<switch
id="switch3047"
transform="matrix(0.31339755,0,0,0.31339755,17.93056,924.82501)">
transform="matrix(0.31339755,0,0,0.31339755,17.93056,924.82501)"
>
<foreignObject
id="foreignObject3049"
height="1"
width="1"
y="0"
x="0"
requiredExtensions="http://ns.adobe.com/AdobeIllustrator/10.0/">
<i:pgfRef
xlink:href="#adobe_illustrator_pgf" />
requiredExtensions="http://ns.adobe.com/AdobeIllustrator/10.0/"
>
<i:pgfRef xlink:href="#adobe_illustrator_pgf" />
</foreignObject>
<g
id="g3051"
i:extraneous="self">
<g
i:rgbTrio="#4F008000FFFF"
i:dimmedPercent="50"
i:layer="yes"
id="レイヤー_1">
<g id="g3051" i:extraneous="self">
<g i:rgbTrio="#4F008000FFFF" i:dimmedPercent="50" i:layer="yes" id="レイヤー_1">
<switch
a:adobe-opacity-share="1"
transform="translate(30,142)"
i:objectType="replaceable-image"
i:objectNS="http://ns.adobe.com/ImageReplacement/1.0/"
id="SVGID_2_">
id="SVGID_2_"
>
<foreignObject
id="foreignObject3055"
a:adobe-opacity-share="0"
@ -95,7 +89,8 @@
y="0"
x="0"
requiredExtensions="http://ns.adobe.com/ImageReplacement/1.0/"
overflow="visible">
overflow="visible"
>
<ns:imageReplacement
refHeight="289"
refWidth="264"
@ -105,9 +100,9 @@
height="289"
width="264"
y="0"
x="0" />
<ns0:targetRef
xlink:href="#SVGID_1_" />
x="0"
/>
<ns0:targetRef xlink:href="#SVGID_1_" />
</foreignObject>
<image
i:knockout="Off"
@ -116,139 +111,79 @@
id="SVGID_1_"
height="289"
width="264"
a:adobe-opacity-share="0" />
a:adobe-opacity-share="0"
/>
</switch>
<g
id="g3058">
<g id="g3058">
<linearGradient
y2="400.00049"
x2="124.9995"
y1="0"
x1="124.9995"
gradientUnits="userSpaceOnUse"
id="SVGID_3_">
<stop
id="stop3061"
style="stop-color:#E05900"
offset="0.3252" />
<stop
id="stop3063"
style="stop-color:#E01A00"
offset="0.638" />
<stop
id="stop3065"
style="stop-color:#9F1900"
offset="0.7914" />
<stop
id="stop3067"
style="stop-color:#700C00"
offset="1" />
<a:midPointStop
style="stop-color:#E05900"
offset="0.3252" />
<a:midPointStop
style="stop-color:#E05900"
offset="0.5" />
<a:midPointStop
style="stop-color:#E01A00"
offset="0.638" />
<a:midPointStop
style="stop-color:#E01A00"
offset="0.5" />
<a:midPointStop
style="stop-color:#9F1900"
offset="0.7914" />
<a:midPointStop
style="stop-color:#9F1900"
offset="0.5" />
<a:midPointStop
style="stop-color:#700C00"
offset="1" />
id="SVGID_3_"
>
<stop id="stop3061" style="stop-color:#E05900" offset="0.3252" />
<stop id="stop3063" style="stop-color:#E01A00" offset="0.638" />
<stop id="stop3065" style="stop-color:#9F1900" offset="0.7914" />
<stop id="stop3067" style="stop-color:#700C00" offset="1" />
<a:midPointStop style="stop-color:#E05900" offset="0.3252" />
<a:midPointStop style="stop-color:#E05900" offset="0.5" />
<a:midPointStop style="stop-color:#E01A00" offset="0.638" />
<a:midPointStop style="stop-color:#E01A00" offset="0.5" />
<a:midPointStop style="stop-color:#9F1900" offset="0.7914" />
<a:midPointStop style="stop-color:#9F1900" offset="0.5" />
<a:midPointStop style="stop-color:#700C00" offset="1" />
</linearGradient>
<path
id="path3069"
d="m 121.572,397.32 c 0.5,1.891 2.04,2.68 3.696,2.68 1.684,0 3.092,-0.945 3.532,-2.701 7.722,-38.84 29.792,-127.42 73.262,-176.318 C 226.548,193.439 250,163.18 250,123.658 250,55.364 194.034,0 125,0 55.964,0 0,55.364 0,123.658 c 0,39.522 23.45,69.781 47.937,97.323 43.478,48.908 65.59,137.554 73.635,176.339 z"
i:knockout="Off"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_3_)" />
style="fill:url(#SVGID_3_)"
/>
<linearGradient
y2="394.51611"
x2="125.0005"
y1="3.7953999"
x1="125.0005"
gradientUnits="userSpaceOnUse"
id="SVGID_4_">
<stop
id="stop3072"
style="stop-color:#FF7907"
offset="0" />
<stop
id="stop3074"
style="stop-color:#E03A00"
offset="0.6319" />
<stop
id="stop3076"
style="stop-color:#B32B00"
offset="0.8957" />
<stop
id="stop3078"
style="stop-color:#7C1E00"
offset="1" />
<a:midPointStop
style="stop-color:#FF7907"
offset="0" />
<a:midPointStop
style="stop-color:#FF7907"
offset="0.5" />
<a:midPointStop
style="stop-color:#E03A00"
offset="0.6319" />
<a:midPointStop
style="stop-color:#E03A00"
offset="0.5" />
<a:midPointStop
style="stop-color:#B32B00"
offset="0.8957" />
<a:midPointStop
style="stop-color:#B32B00"
offset="0.5" />
<a:midPointStop
style="stop-color:#7C1E00"
offset="1" />
id="SVGID_4_"
>
<stop id="stop3072" style="stop-color:#FF7907" offset="0" />
<stop id="stop3074" style="stop-color:#E03A00" offset="0.6319" />
<stop id="stop3076" style="stop-color:#B32B00" offset="0.8957" />
<stop id="stop3078" style="stop-color:#7C1E00" offset="1" />
<a:midPointStop style="stop-color:#FF7907" offset="0" />
<a:midPointStop style="stop-color:#FF7907" offset="0.5" />
<a:midPointStop style="stop-color:#E03A00" offset="0.6319" />
<a:midPointStop style="stop-color:#E03A00" offset="0.5" />
<a:midPointStop style="stop-color:#B32B00" offset="0.8957" />
<a:midPointStop style="stop-color:#B32B00" offset="0.5" />
<a:midPointStop style="stop-color:#7C1E00" offset="1" />
</linearGradient>
<path
id="path3080"
d="M 125.182,394.516 C 116.987,354.918 94.86,268.016 50.818,218.477 27.047,191.735 3.838,162.389 3.838,123.658 3.837,57.565 58.189,3.795 125,3.795 c 66.81,0 121.164,53.77 121.164,119.862 0,38.731 -23.21,68.078 -46.981,94.819 -44.042,49.54 -65.922,136.434 -74.001,176.04 l 0,0 z"
i:knockout="Off"
inkscape:connector-curvature="0"
style="fill:url(#SVGID_4_)" />
style="fill:url(#SVGID_4_)"
/>
</g>
<g
id="g3082">
<g id="g3082">
<linearGradient
y2="75.175797"
x2="75.347198"
y1="174.48289"
x1="174.6543"
gradientUnits="userSpaceOnUse"
id="SVGID_5_">
<stop
id="stop3085"
style="stop-color:#FF7907"
offset="0" />
<stop
id="stop3087"
style="stop-color:#E03A00"
offset="1" />
<a:midPointStop
style="stop-color:#FF7907"
offset="0" />
<a:midPointStop
style="stop-color:#FF7907"
offset="0.5" />
<a:midPointStop
style="stop-color:#E03A00"
offset="1" />
id="SVGID_5_"
>
<stop id="stop3085" style="stop-color:#FF7907" offset="0" />
<stop id="stop3087" style="stop-color:#E03A00" offset="1" />
<a:midPointStop style="stop-color:#FF7907" offset="0" />
<a:midPointStop style="stop-color:#FF7907" offset="0.5" />
<a:midPointStop style="stop-color:#E03A00" offset="1" />
</linearGradient>
<ellipse
id="ellipse3089"
@ -262,12 +197,14 @@
sodipodi:rx="70.598"
sodipodi:ry="69.841003"
style="fill:url(#SVGID_5_)"
d="m 195.598,124.828 c 0,38.57212 -31.6078,69.84101 -70.598,69.84101 -38.990199,0 -70.598,-31.26889 -70.598,-69.84101 0,-38.572118 31.607801,-69.841 70.598,-69.841 38.9902,0 70.598,31.268882 70.598,69.841 z" />
d="m 195.598,124.828 c 0,38.57212 -31.6078,69.84101 -70.598,69.84101 -38.990199,0 -70.598,-31.26889 -70.598,-69.84101 0,-38.572118 31.607801,-69.841 70.598,-69.841 38.9902,0 70.598,31.268882 70.598,69.841 z"
/>
<switch
transform="translate(56,57)"
i:objectType="replaceable-image"
i:objectNS="http://ns.adobe.com/ImageReplacement/1.0/"
id="SVGID_7_">
id="SVGID_7_"
>
<foreignObject
id="foreignObject3092"
height="136"
@ -275,7 +212,8 @@
y="0"
x="0"
requiredExtensions="http://ns.adobe.com/ImageReplacement/1.0/"
overflow="visible">
overflow="visible"
>
<ns:imageReplacement
refHeight="136"
refWidth="138"
@ -285,16 +223,17 @@
height="136"
width="138"
y="0"
x="0" />
<ns0:targetRef
xlink:href="#SVGID_6_" />
x="0"
/>
<ns0:targetRef xlink:href="#SVGID_6_" />
</foreignObject>
<image
i:knockout="Off"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAACICAYAAAA4T3NvAAAACXBIWXMAAAsSAAALEgHS3X78AAAA GXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACyJJREFUeNrsnYlu4zgQRJdCfmUw mPv8/y/I3Pcgc32JFlrAC0Mjsq+qJqWYQBDJdhJHfq6qbspU+eeWjZubm3l92zz/dZN42927d8tt Om6H/Wd//Pg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YkXTLK+Xj37h1FVUbNKBlqwoAk oiYQUNawRMNtBBDUZeaRs8leYEaCBAbKMt6+fTtHTzXwQBJRmEjjDdGFzbAaBCRQUE6wIJWFHWSt gdajJJK17AESOCgtWBCZpUdGQXdiM6wGDQkFlGW8efNmjsz7ePoomsdpXxTWaQYZKsKAhAbKCRaE sjAVBnlGvgeUvUBCBWUZr1+/npkL5owwKeg9YWlPkNBBOcESzSd7BSULEDYkKaAs49WrV/NtAuVI gKSCsgXMnkGxKMkRIEkH5QQLquIZGZQjQdIFlDUwRwLliIB0B2UZ19fX815A6QlHb0i6g7IGpgco Gih6wtEbkKFA2YJlREW5rZAMBYoGmExQLoAMDooHmCON0QAZHpTbBsyogOwGlKMDMzoguwPlSNDs BY7dg7JHaPYIx6FAGRmavcNxWFB6wnMkKG4lKCiQjg6CNP4VYACZKRhPIek7wgAAAABJRU5ErkJg gg=="
id="SVGID_6_"
height="136"
width="138" />
width="138"
/>
</switch>
</g>
</g>

3
base_location/views/res_city_view.xml

@ -45,7 +45,8 @@
/>
<field name="help">
Display and manage the list of all cities that can be assigned to
your partner records. Note that an option can be set on each country separately
your partner records. Note that an option can be set on each country
separately
to enforce any address of it to have a city in this list.
</field>
</record>

6
base_location/views/res_company_view.xml

@ -22,9 +22,9 @@
/>
</field>
<field name="city" position="attributes">
<attribute
name="invisible"
>[('country_enforce_cities', '=', True)]</attribute>
<attribute name="invisible">
[('country_enforce_cities', '=', True)]
</attribute>
</field>
</field>
</record>

1
base_location/views/res_country_view.xml

@ -23,6 +23,7 @@
context="{'default_country_id': active_id, 'search_default_country_id': active_id}"
string="Zips"
>
</button>
</xpath>
</field>

1
setup/base_location/odoo/addons/base_location

@ -0,0 +1 @@
../../../../base_location

6
setup/base_location/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save