Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Custom Repair
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
imoberdof
Custom Repair
Commits
874f6cb1
Commit
874f6cb1
authored
1 month ago
by
nicolas.russo
Browse files
Options
Downloads
Patches
Plain Diff
[IMP][T8404] Delivery carrier fields mods
parent
956386f8
No related branches found
Branches containing commit
No related tags found
1 merge request
!63
[IMP][T8404] Delivery carrier fields mods
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
i18n/es_AR.po
+6
-1
6 additions, 1 deletion
i18n/es_AR.po
models/delivery.py
+5
-1
5 additions, 1 deletion
models/delivery.py
models/stock_picking.py
+1
-0
1 addition, 0 deletions
models/stock_picking.py
views/stock_picking_type_view.xml
+17
-0
17 additions, 0 deletions
views/stock_picking_type_view.xml
with
29 additions
and
2 deletions
i18n/es_AR.po
+
6
−
1
View file @
874f6cb1
...
...
@@ -130,4 +130,9 @@ msgstr "Cantidad"
#: model:ir.model.fields,field_description:repair.field_repair_line__lot_id
#: model:ir.model.fields,field_description:repair.field_repair_order__lot_id
msgid "Lot/Serial"
msgstr "N de Identificador"
\ No newline at end of file
msgstr "N de Identificador"
#. module: l10n_ar_eynes
#: model:ir.model.fields,field_description:l10n_ar_eynes.field_delivery_carrier__vat
msgid "Nro de CUIT"
msgstr "Nro de CUIT"
This diff is collapsed.
Click to expand it.
models/delivery.py
+
5
−
1
View file @
874f6cb1
...
...
@@ -4,4 +4,8 @@ class DeliveryCarrier(models.Model):
_inherit
=
'
delivery.carrier
'
street
=
fields
.
Char
(
string
=
'
Domicilio
'
,
readonly
=
False
)
phone
=
fields
.
Char
(
string
=
'
Teléfono
'
,
readonly
=
False
)
\ No newline at end of file
phone
=
fields
.
Char
(
string
=
'
Teléfono
'
,
readonly
=
False
)
vat
=
fields
.
Char
(
string
=
'
Nro de CUIT
'
,
)
This diff is collapsed.
Click to expand it.
models/stock_picking.py
+
1
−
0
View file @
874f6cb1
...
...
@@ -7,6 +7,7 @@ class PickingType(models.Model):
# Es opcional, por lo tanto, puede servirnos para cuando son Delivery Orders
# y dependen del Warehouse, por lo tanto, podemos tener para varias sucursales
packages_quant
=
fields
.
Integer
(
string
=
'
Cantidad de bultos
'
,
required
=
False
)
packages_kgs
=
fields
.
Float
(
string
=
'
Peso
'
,
required
=
False
)
class
PickingType
(
models
.
Model
):
_inherit
=
"
stock.picking.type
"
...
...
This diff is collapsed.
Click to expand it.
views/stock_picking_type_view.xml
+
17
−
0
View file @
874f6cb1
...
...
@@ -18,10 +18,27 @@
<field
name=
"arch"
type=
"xml"
>
<group
name=
"carrier_data"
position=
"inside"
>
<field
name=
"packages_quant"
/>
<label
for=
"packages_kgs"
string=
"Peso para el envío"
/>
<div>
<field
name=
"packages_kgs"
class=
"oe_inline"
/>
<span
style=
"margin-left:5px"
>
kg
</span>
</div>
</group>
<xpath
expr=
"//page[@name='note']/field"
position=
"before"
>
<span
style=
"font-weight: bold;"
>
Observaciones:
</span>
</xpath>
<xpath
expr=
"//label[@for='weight']"
position=
"attributes"
>
<attribute
name=
"invisible"
>
1
</attribute>
</xpath>
<xpath
expr=
"//field[@name='weight']/.."
position=
"attributes"
>
<attribute
name=
"invisible"
>
1
</attribute>
</xpath>
<xpath
expr=
"//label[@for='shipping_weight']"
position=
"attributes"
>
<attribute
name=
"invisible"
>
1
</attribute>
</xpath>
<xpath
expr=
"//field[@name='shipping_weight']/.."
position=
"attributes"
>
<attribute
name=
"invisible"
>
1
</attribute>
</xpath>
</field>
</record>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment