|
1 | 1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | 2 | <odoo> |
| 3 | + <data noupdate="1"> |
| 4 | + <record id="seq_id" model="ir.sequence"> |
| 5 | + <field name="name">sale_subscription_sequencer</field> |
| 6 | + <field name="code">sale.subscription</field> |
| 7 | + <field name="prefix">SUB</field> |
| 8 | + <field name="padding">5</field> |
| 9 | + </record> |
3 | 10 |
|
4 | | - <data> |
5 | | - <record id="seq_id" model="ir.sequence"> |
6 | | - <field name="name">sale_subscription_sequencer</field> |
7 | | - <field name="code">sale.subscription</field> |
8 | | - <field name="prefix">SUB</field> |
9 | | - <field name="padding">5</field> |
10 | | - </record> |
11 | | - </data> |
12 | | - |
13 | | - <data noupdate="1"> |
14 | | - <record id="subscription_stage_draft" model="sale.subscription.stage"> |
15 | | - <!-- <field eval="True" name="active"/> --> |
16 | | - <field name="name">Ready to start</field> |
17 | | - <field name="sequence">0</field> |
18 | | - <field name="type">pre</field> |
19 | | - <field name="description"> |
20 | | - Draft equivalent, a subscription is ready to start when is not marked as in progress but it can be at any moment. If there's no 'Closed'-type stage defined, when a subscription comes to an end by automatic means, it will be marked with this stage. |
21 | | - </field> |
22 | | - <field eval="False" name="fold" /> |
23 | | - </record> |
24 | | - |
25 | | - <record id="subscription_stage_in_progress" model="sale.subscription.stage"> |
26 | | - <!-- <field eval="True" name="active"/> --> |
27 | | - <field name="name">In progress</field> |
28 | | - <field name="sequence">1</field> |
29 | | - <field name="type">in_progress</field> |
30 | | - <field eval="False" name="fold" /> |
31 | | - <field name="description"> |
32 | | - As an 'In progress'-type of stage, it will trigger the recurring invoicing process if applicable. If this stage is the first - sequence order - of the available 'In progress' types and there's a stage change from any other non-'In progress' types to this one, an invoice will be created automatically if the start date is the present day. |
33 | | - </field> |
34 | | - </record> |
35 | | - |
36 | | - <record id="subscription_stage_closed" model="sale.subscription.stage"> |
37 | | - <!-- <field eval="True" name="active"/> --> |
38 | | - <field name="name">Closed</field> |
39 | | - <field name="sequence">2</field> |
40 | | - <field name="type">post</field> |
41 | | - <field eval="False" name="fold" /> |
42 | | - <field name="description"> |
43 | | - The final stage of a subscription. There are two ways to mark a subscription as closed. The easiest one is using the kanban card-moving capabilities, pressing the 'Close subscription' button (only available if a subscription is in progress). |
44 | | - </field> |
45 | | - </record> |
| 11 | + <record id="subscription_stage_draft" model="sale.subscription.stage"> |
| 12 | + <field name="name">Draft</field> |
| 13 | + <field name="sequence">0</field> |
| 14 | + <field name="type">draft</field> |
| 15 | + <field name="description"> |
| 16 | + Draft, still working on the specifics. |
| 17 | + </field> |
| 18 | + <field eval="False" name="fold" /> |
| 19 | + </record> |
46 | 20 |
|
| 21 | + <record id="subscription_stage_ready" model="sale.subscription.stage"> |
| 22 | + <field name="name">Ready to start</field> |
| 23 | + <field name="sequence">1</field> |
| 24 | + <field name="type">pre</field> |
| 25 | + <field name="description"> |
| 26 | + A subscription is ready to start when is not marked as in progress but it can be at any moment. If there's no 'Closed'-type stage defined, when a subscription comes to an end by automatic means, it will be marked with this stage. |
| 27 | + </field> |
| 28 | + <field eval="False" name="fold" /> |
| 29 | + </record> |
47 | 30 |
|
48 | | - </data> |
| 31 | + <record id="subscription_stage_in_progress" model="sale.subscription.stage"> |
| 32 | + <field name="name">In progress</field> |
| 33 | + <field name="sequence">2</field> |
| 34 | + <field name="type">in_progress</field> |
| 35 | + <field eval="False" name="fold" /> |
| 36 | + <field name="description"> |
| 37 | + As an 'In progress'-type of stage, it will trigger the recurring invoicing process if applicable. If this stage is the first - sequence order - of the available 'In progress' types and there's a stage change from any other non-'In progress' types to this one, an invoice will be created automatically if the start date is the present day. |
| 38 | + </field> |
| 39 | + </record> |
49 | 40 |
|
50 | | - <record id="close_reason_expensive" model="sale.subscription.close.reason"> |
51 | | - <!-- <field eval="True" name="active"/> --> |
52 | | - <field name="name">The subscription is too expensive</field> |
53 | | - </record> |
| 41 | + <record id="subscription_stage_closed" model="sale.subscription.stage"> |
| 42 | + <field name="name">Closed</field> |
| 43 | + <field name="sequence">3</field> |
| 44 | + <field name="type">post</field> |
| 45 | + <field eval="False" name="fold" /> |
| 46 | + <field name="description"> |
| 47 | + The final stage of a subscription. There are two ways to mark a subscription as closed. The easiest one is using the kanban card-moving capabilities, pressing the 'Close subscription' button (only available if a subscription is in progress). |
| 48 | + </field> |
| 49 | + </record> |
| 50 | + </data> |
54 | 51 |
|
55 | | - <record id="close_reason_requirement" model="sale.subscription.close.reason"> |
56 | | - <!-- <field eval="True" name="active"/> --> |
57 | | - <field name="name">Subscription does not meet my requirements</field> |
58 | | - </record> |
59 | | - |
60 | | - <record id="close_reason_ended" model="sale.subscription.close.reason"> |
61 | | - <!-- <field eval="True" name="active"/> --> |
62 | | - <field name="name">The subscription ended</field> |
63 | | - </record> |
| 52 | + <record id="close_reason_expensive" model="sale.subscription.close.reason"> |
| 53 | + <field name="name">The subscription is too expensive</field> |
| 54 | + </record> |
64 | 55 |
|
65 | | - <record id="close_reason_use" model="sale.subscription.close.reason"> |
66 | | - <!-- <field eval="True" name="active"/> --> |
67 | | - <field name="name">I don't really use it</field> |
68 | | - </record> |
| 56 | + <record id="close_reason_requirement" model="sale.subscription.close.reason"> |
| 57 | + <field name="name">Subscription does not meet my requirements</field> |
| 58 | + </record> |
69 | 59 |
|
70 | | - <record id="close_reason_other" model="sale.subscription.close.reason"> |
71 | | - <!-- <field eval="True" name="active"/> --> |
72 | | - <field name="name">Other</field> |
73 | | - </record> |
| 60 | + <record id="close_reason_ended" model="sale.subscription.close.reason"> |
| 61 | + <field name="name">The subscription ended</field> |
| 62 | + </record> |
74 | 63 |
|
| 64 | + <record id="close_reason_use" model="sale.subscription.close.reason"> |
| 65 | + <field name="name">I don't really use it</field> |
| 66 | + </record> |
75 | 67 |
|
| 68 | + <record id="close_reason_other" model="sale.subscription.close.reason"> |
| 69 | + <field name="name">Other</field> |
| 70 | + </record> |
76 | 71 | </odoo> |
0 commit comments