Fiscal Policy In economics and political science, fiscal policy is the use of government revenue
Odoo Fiscal PositionĀ
http://www.technaureus.com/fiscal-position-in-odoo/
seen from United States
seen from China
seen from Türkiye
seen from United States

seen from United States
seen from United States
seen from United States
seen from United States
seen from Ireland

seen from Singapore
seen from United States

seen from United States
seen from United States
seen from Ireland
seen from China

seen from Malaysia
seen from China

seen from United States

seen from Germany
seen from United States
Fiscal Policy In economics and political science, fiscal policy is the use of government revenue
Odoo Fiscal PositionĀ
http://www.technaureus.com/fiscal-position-in-odoo/

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch ⢠No registration required ⢠HD streaming
Cross-model data referencing in Odoo SaaS views.
Using Odoo SaaS is extremely limiting and most of the solutions to most of the issues you find online are programmatic solutions for when you have access to the models themselves. These, however, do not help you if youāre stuck on the SaaS platform.Ā
So many times I have wanted to display related data in one view from another model. Thanks to some help from a StackOverflow user, I understand how to do it now.. hereās the beta.Ā
In the model res.partner I created 2 new fields of type āSelectionā namedĀ āx_invoice_preferenceā and āx_payment_preferenceā. I needed to display these preferences inside of the account.invoice tree and form views, and I definitely didnāt want the values to be copied, but referenced.Ā
I will explain the āx_payment_preferencesā solution in this example, but just rinse and repeat for your fields.Ā The solution is to create a new field in account.invoice with the same name as the field in res.partner (this is not required, but is best practice). Give it a Field Label and click on the āAdvanced Propertiesā tab.Ā Ā Then putĀ
partner_id.x_payment_preferenceĀ
as the value forĀ āRelated Fieldā. This will automatically set the field type, same as the related field. You then need to copy/paste the āSelection Optionsā to be the same as the res.partner fieldās selection options.Ā
This will pull the data from the res.partner model using the relation through partner_id. Now that field is available for you to use in your views. Just reference it as you would any other view.Ā
Itās that simple!Ā
Hopefully this helps.. it wasnāt obvious to me and the Odoo SaaS documentation and examples are definitely lacking IMO.Ā
Setting up aĀ āselectionā data type within a model in Odoo 9 (SaaS)
I needed to add a selection for drug type in the model products.template so I opened the model by enabling debug mode, and going to settings/technical/models/products.templateĀ and created a new field called āx_scheduleā. The data type isĀ āselectionā and the selection options were as follows:Ā
[('none', 'None'), ('i', 'Schedule I'), ('ii', 'Schedule II'), ('iii', 'Schedule III'), ('iv', 'Schedule IV'), ('v', 'Schedule V'), ('legend', 'Legend')]
The next part is adding it to the view, so with debug mode still enabled, I went int to settings/technical/views and I create a new view called ā[xxx] Product Additional Fieldsā where any additional fields for products will go.Ā
View Type:Ā āFormā
Object:Ā āproduct.templateā
Inherited View:Ā āproduct.template.product.formā
View inheritance mode:Ā āExtension Viewā
Under architecture add the following:Ā
<?xml version='1.0'?> <data> Ā Ā Ā <field name="invoice_policy" position="after"> Ā Ā Ā <field name="x_schedule"/> </field>
</data>
In this case, this will place the new field after the fieldĀ āinvoice_policyā.Ā
AddĀ āFor Todayā Date filter to Odoo search view.
I needed a filter that would show deliver orders that were due today or late. Hereās how I accomplished that:
<filter name="today" string="For Today" domain="[('state','in',('assigned', 'partially_available')),('min_date', '<=',datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]" help="Pickings to be done today"/>
In the Sales/Reports/Sales view I needed the same thing, but just for sales today, not past. It is structured slightly differently:Ā
<filter name="today" string="For Today" domain="[('date', '>=',datetime.datetime.now().strftime('%Y-%m-%d 00:00:00'))]" help="Filter on Ā today"/>
What youāll notice is the variable that is changing between the two. The first usesĀ āmin_dateā and the second usesĀ ādateā. Also, for the first, I wanted everything that was overdue as well as what is due today so you use ā<=ā or less than or equal Ā (<=) than the last minute of the day where the second usesĀ ā>=ā or greater than or equal (>=) than the beginning of the day.Ā
Modifying the label for of a base field in Odoo 9
I needed to change the label for a base field in Odoo 9 SA. If you try to change the label in the model it warns you that you should do that with python code or even better, by making a module. Being Iām on Odoo 9 SA (SaaS) I am not able to create modules. What I found you can do is create an extension view for that view and use the following:Ā
Ā Ā <xpath expr="//field[@name='use_date']" position="attributes"> Ā Ā Ā Ā <attribute name="string">Beyond Use Date (BUD)</attribute> Ā Ā </xpath>
Basically what youāre doing here is youāre targeting the field with the nameĀ āuse_dateā and adding an attribute āstringāĀ to it. Then the value of the string attribute is what the new label will be.Ā

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch ⢠No registration required ⢠HD streaming
Add shipping address to invoice in Odoo 9 SA
The use case is this - you have a customer who has multiple shipping addresses and a single billing address. You send them invoices from Odoo but they require the billing address and the location to which the product they are paying for was shipped.Ā
This is something that plagued me for a while. It seems like it should be so simple, but itās definitely not designed to be an immediate function. The issue is that there is no reference to the shipping address in the account.invoice model, and the only place that reference exists is in the sale.order model. However, there is no reference by ID to the sale.order record in the account.invoice model, only by reference which is a string such as āSO1234ā³. This means you have to look up the sales order by matching the reference string to the sales order name field.Ā
What I have found is somewhat of a hack, but it works! In the QWeb view for the account.invoice (account.report_invoice_documentĀ ) report add the following snippet where you want your address.Ā
<t t-if="o.origin"> Ā <t t-set="order" t-value="request.env['sale.order'].search([('name', '=', o.origin)], limit=1)"/> Ā <t t-if="order"> Ā Ā <span t-field="order.partner_shipping_id" t-field-options="{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}"/> Ā </t> </t>
What this does is checks to see if an āorigināĀ value exists in the account.invoice record and then searches the ānameā field of theĀ sale.order model for a match and returns the first one. Then if there is a match, it grabs the record and uses theĀ āpartner_shipping_idā field and puts that into the contact widget (which is looking for a res.partner id) and outputs the Name, Address and Phone from that record. Itās pretty hackish, but definitely does the job.Ā