mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] delivery_partner_ups: to 17.0
This commit is contained in:
@@ -1,12 +1,17 @@
|
|||||||
{
|
{
|
||||||
'name': 'UPS Partner Shipping Accounts',
|
'name': 'UPS Partner Shipping Accounts',
|
||||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
'author': 'Hibou Corp.',
|
||||||
'version': '16.0.1.0.0',
|
'version': '17.0.1.0.0',
|
||||||
'license': 'LGPL-3',
|
'license': 'LGPL-3',
|
||||||
'category': 'Stock',
|
'category': 'Stock',
|
||||||
'sequence': 95,
|
'sequence': 95,
|
||||||
'summary': 'UPS Partner Shipping Accounts',
|
'summary': 'UPS Partner Shipping Accounts',
|
||||||
'description': """
|
'description': """
|
||||||
|
UPS Partner Shipping Accounts
|
||||||
|
=============================
|
||||||
|
This module adds UPS to the delivery type selection dropdown on the Partner Shipping Account model.
|
||||||
|
Additionally, it adds a new required field UPS Account ZIP, as well as validation of entered UPS account number.
|
||||||
|
|
||||||
""",
|
""",
|
||||||
'website': 'https://hibou.io/',
|
'website': 'https://hibou.io/',
|
||||||
'depends': [
|
'depends': [
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
<field name="inherit_id" ref="delivery_partner.partner_shipping_account_view_form"/>
|
<field name="inherit_id" ref="delivery_partner.partner_shipping_account_view_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//group[@name='carrier']" position="inside">
|
<xpath expr="//group[@name='carrier']" position="inside">
|
||||||
<field name="ups_zip" attrs="{'invisible': [('delivery_type', '!=', 'ups')], 'required': [('delivery_type', '=', 'ups')]}"/>
|
<field name="ups_zip"
|
||||||
|
invisible="not delivery_type == 'ups'"
|
||||||
|
required= "delivery_type == 'ups'"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user