mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
Pingen: API v2 changes
This commit is contained in:
@@ -7,12 +7,13 @@
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Pingen Document">
|
||||
<field name="push_date" />
|
||||
<field name="name" />
|
||||
<field name="datas_fname" />
|
||||
<field name="pingen_send" />
|
||||
<field name="pingen_speed" />
|
||||
<field name="pingen_color" />
|
||||
<field name="auto_send" />
|
||||
<field name="delivery_product" />
|
||||
<field name="print_spectrum" />
|
||||
<field name="state" />
|
||||
<field name="pingen_status" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -24,6 +25,34 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Pingen Document">
|
||||
<header>
|
||||
<button
|
||||
name="push_to_pingen"
|
||||
type="object"
|
||||
states="pending"
|
||||
string="Push to pingen.com"
|
||||
icon="fa-upload"
|
||||
/>
|
||||
<button
|
||||
name="ask_pingen_send"
|
||||
type="object"
|
||||
string="Ask pingen.com to send the document"
|
||||
icon="fa-share"
|
||||
attrs="{'invisible': ['|', ('state', '!=', 'pushed'),('auto_send', '=', True)]}"
|
||||
/>
|
||||
<button
|
||||
name="resolve_error"
|
||||
type="object"
|
||||
states="error,pingen_error"
|
||||
string="Errors resolved"
|
||||
icon="fa-repeat"
|
||||
/>
|
||||
<button
|
||||
name="update_post_infos"
|
||||
type="object"
|
||||
states="pushed,sendcenter,sent"
|
||||
string="Update the letter's informations"
|
||||
icon="fa-refresh"
|
||||
/>
|
||||
<field
|
||||
name="state"
|
||||
widget="statusbar"
|
||||
@@ -31,7 +60,7 @@
|
||||
statusbar_colors='{"error":"red","pingen_error":"red","canceled":"grey","pushed":"blue","sent":"green"}'
|
||||
/>
|
||||
</header>
|
||||
<group colspan="4" col="6">
|
||||
<group>
|
||||
<field name="name" readonly="True" />
|
||||
<field name="type" readonly="True" />
|
||||
<field
|
||||
@@ -41,54 +70,62 @@
|
||||
widget="selection"
|
||||
/>
|
||||
</group>
|
||||
<notebook colspan="4">
|
||||
<notebook>
|
||||
<page string="Pingen.com">
|
||||
<separator string="Options" colspan="4" />
|
||||
<newline />
|
||||
<group col="2" colspan="2">
|
||||
<field
|
||||
name="pingen_send"
|
||||
attrs="{'readonly': [('state', 'in', ['sendcenter', 'sent'])]}"
|
||||
/>
|
||||
<field
|
||||
name="pingen_speed"
|
||||
attrs="{'readonly': [('state', 'in', ['sendcenter', 'sent'])], 'required': [('pingen_send', '=', True)]}"
|
||||
/>
|
||||
<field
|
||||
name="pingen_color"
|
||||
attrs="{'readonly': [('state', 'in', ['sendcenter', 'sent'])]}"
|
||||
/>
|
||||
<group>
|
||||
<group>
|
||||
<field name="pingen_uuid" />
|
||||
<field name="pingen_status" />
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<separator string="Dates" colspan="4" />
|
||||
<separator string="Options" />
|
||||
<newline />
|
||||
<group col="2" colspan="2">
|
||||
<group>
|
||||
<group>
|
||||
<field
|
||||
name="auto_send"
|
||||
attrs="{'readonly': [('state', 'in', ['sendcenter', 'sent'])]}"
|
||||
/>
|
||||
<field
|
||||
name="delivery_product"
|
||||
attrs="{'readonly': [('state', 'in', ['sendcenter', 'sent'])], 'required': [('auto_send', '=', True)]}"
|
||||
/>
|
||||
<field
|
||||
name="print_spectrum"
|
||||
attrs="{'readonly': [('state', 'in', ['sendcenter', 'sent'])]}"
|
||||
/>
|
||||
<field
|
||||
name="print_mode"
|
||||
attrs="{'readonly': [('state', 'in', ['sendcenter', 'sent'])]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
<separator string="Dates" />
|
||||
<newline />
|
||||
<group>
|
||||
<field name="push_date" />
|
||||
</group>
|
||||
|
||||
<group
|
||||
colspan="4"
|
||||
attrs="{'invisible': [('last_error_message', '=', False)]}"
|
||||
>
|
||||
<separator string="Errors" colspan="4" />
|
||||
<group attrs="{'invisible': [('last_error_message', '=', False)]}">
|
||||
<separator string="Errors" />
|
||||
<newline />
|
||||
<group col="2" colspan="2">
|
||||
<group>
|
||||
<field nolabel="1" name="last_error_message" />
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<group
|
||||
colspan="4"
|
||||
attrs="{'invisible': [('state', 'not in', ['sendcenter', 'sent'])]}"
|
||||
>
|
||||
<group attrs="{'invisible': [('state', 'not in', ['sendcenter', 'sent'])]}">
|
||||
<separator string="Sendcenter" colspan="4" />
|
||||
<newline />
|
||||
<group col="4" colspan="2">
|
||||
<field colspan="4" name="post_status" />
|
||||
<group col="3" colspan="2">
|
||||
<field name="cost" />
|
||||
<field colspan="1" nolabel="1" name="currency_id" />
|
||||
</group>
|
||||
<group>
|
||||
<label for="cost" />
|
||||
<div>
|
||||
<field name="cost" class="oe_inline" />
|
||||
<field
|
||||
name="currency_id"
|
||||
class="oe_inline"
|
||||
groups="base.group_multi_currency"
|
||||
/>
|
||||
</div>
|
||||
<newline />
|
||||
<field name="parsed_address" />
|
||||
<field name="country_id" />
|
||||
@@ -96,39 +133,6 @@
|
||||
<field name="pages" />
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<separator string="Actions" colspan="4" />
|
||||
<newline />
|
||||
<group col="2" colspan="2">
|
||||
<button
|
||||
name="push_to_pingen"
|
||||
type="object"
|
||||
states="pending"
|
||||
string="Push to pingen.com"
|
||||
icon="fa-upload"
|
||||
/>
|
||||
<button
|
||||
name="ask_pingen_send"
|
||||
type="object"
|
||||
states="pushed"
|
||||
string="Ask pingen.com to send the document"
|
||||
icon="fa-share"
|
||||
/>
|
||||
<button
|
||||
name="resolve_error"
|
||||
type="object"
|
||||
states="error,pingen_error"
|
||||
string="Errors resolved"
|
||||
icon="fa-repeat"
|
||||
/>
|
||||
<button
|
||||
name="update_post_infos"
|
||||
type="object"
|
||||
states="sendcenter"
|
||||
string="Update the letter's informations"
|
||||
icon="fa-refresh"
|
||||
/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Attachment">
|
||||
<group col="4" colspan="4">
|
||||
|
||||
Reference in New Issue
Block a user